diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-17 07:54:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-17 09:47:05 +0000 |
commit | 0bc0559d6eca1981236fdab61dfed72fca61ac85 (patch) | |
tree | e6bfb45353de3f7c1d16558eebb48bba52003b27 /testing/txt2man/fixbashism.patch | |
parent | d4898409df0b9ba0dd9de2a2a019c01d95d55268 (diff) | |
download | aports-0bc0559d6eca1981236fdab61dfed72fca61ac85.tar.bz2 aports-0bc0559d6eca1981236fdab61dfed72fca61ac85.tar.xz |
testing/txt2man: new aport
Convert flat ASCII text to man page format
http://mvertes.free.fr/txt2man/
Diffstat (limited to 'testing/txt2man/fixbashism.patch')
-rw-r--r-- | testing/txt2man/fixbashism.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/txt2man/fixbashism.patch b/testing/txt2man/fixbashism.patch new file mode 100644 index 000000000..f31059d88 --- /dev/null +++ b/testing/txt2man/fixbashism.patch @@ -0,0 +1,14 @@ +--- ./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. |