[mlpack-svn] r16402 - mlpack/trunk/CMake

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Apr 7 10:41:28 EDT 2014


Author: rcurtin
Date: Mon Apr  7 10:41:28 2014
New Revision: 16402

Log:
Actually catch all of the instances where single quotes start lines.


Modified:
   mlpack/trunk/CMake/exec2man.sh

Modified: mlpack/trunk/CMake/exec2man.sh
==============================================================================
--- mlpack/trunk/CMake/exec2man.sh	(original)
+++ mlpack/trunk/CMake/exec2man.sh	Mon Apr  7 10:41:28 2014
@@ -64,7 +64,7 @@
 # correctly so that the entire description of the parameter is on one line (this
 # helps avoid 'man' warnings).
 # The sed line at the end removes accidental macros from the output, replacing
-# 'word' with "word".
+# single-quotes at the beginning of a line with the troff escape code \(aq.
 ./"$name" -h | \
   sed 's/^For further information/Additional Information\n\n For further information/' | \
   sed 's/^consult the documentation/ consult the documentation/' | \
@@ -76,5 +76,5 @@
   awk '/NAME/,/REQUIRED OPTIONS/ { print; } /ADDITIONAL INFORMATION/,0 { print; } /REQUIRED OPTIONS/,/ADDITIONAL INFORMATION/ { if (!/REQUIRED_OPTIONS/ && !/OPTIONS/ && !/ADDITIONAL INFORMATION/) { if (/ --/) { printf "\n" } sub(/^[ ]*/, ""); sub(/ [ ]*/, " "); printf "%s ", $0; } else { if (!/REQUIRED OPTIONS/ && !/ADDITIONAL INFORMATION/) { print "\n"$0; } } }' | \
   sed 's/  ADDITIONAL INFORMATION/\n\nADDITIONAL INFORMATION/' | \
   txt2man -P mlpack -t "$name" -d 1 | \
-  sed "s/^'\([A-Za-z0-9 ]*\)'/\"\1\"/" > "$output"
+  sed "s/^'/\\\\(aq/" > "$output"
 



More information about the mlpack-svn mailing list