[mlpack-git] master, mlpack-1.0.x: Actually catch all of the instances where single quotes start lines. (58f92ce)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:45:54 EST 2015


Repository : https://github.com/mlpack/mlpack

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 58f92ce88335a5f7f39c243dd670b8cd73a9bf6c
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Apr 7 14:41:28 2014 +0000

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


>---------------------------------------------------------------

58f92ce88335a5f7f39c243dd670b8cd73a9bf6c
 CMake/exec2man.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMake/exec2man.sh b/CMake/exec2man.sh
index ce59e5b..b0807fc 100755
--- a/CMake/exec2man.sh
+++ b/CMake/exec2man.sh
@@ -64,7 +64,7 @@ synopsis="$name [-h] [-v] $reqoptions $options";
 # 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 @@ synopsis="$name [-h] [-v] $reqoptions $options";
   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-git mailing list