aports/testing/txt2man/fixbashism.patch
Natanael Copa 0bc0559d6e testing/txt2man: new aport
Convert flat ASCII text to man page format
http://mvertes.free.fr/txt2man/
2011-03-17 09:47:05 +00:00

15 lines
380 B
Diff

--- ./bookman.orig
+++ ./bookman
@@ -83,9 +83,9 @@
shift $(($OPTIND - 1))
date=${date:-$(date +'%d %B %Y')}
-[[ $1 ]] || set -- $(while read; do echo $REPLY; done)
+[ -n "$1" ] || set -- $(while read REPLY; do echo $REPLY; done)
-[[ $outfile ]] && post="$post >$outfile"
+[ -n "$outfile" ] && post="$post >$outfile"
{
# Compute table of content from postscript output.