Strip lines that confuse help2man
authorIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Mon, 29 Jun 2015 06:56:01 +0000 (08:56 +0200)
committerIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Mon, 29 Jun 2015 06:56:01 +0000 (08:56 +0200)
`jacktrip -h` uses "====" and "---." lines for layouting,
which confuses help2man. so we just strip them

debian/jacktrip-help2man

index d88caf155c862e2a198e48c5f9d9aa144bcbc439..d44bac4015083c7598fcf8863bcb89aeb5cf863c 100755 (executable)
@@ -2,7 +2,7 @@
 JACKTRIP=$(pwd)/src/jacktrip
 case "$1" in
   -h|--help)
-    ${JACKTRIP} -h 2>&1 | sed '0,/^-[-]*-$/d'
+    ${JACKTRIP} -h 2>&1 | sed -e '0,/^-[-]*-$/d' -e '/^==*=$/d'
     ;;
   *)
     ${JACKTRIP} $@