[mlpack-svn] r12419 - mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Apr 16 17:42:23 EDT 2012


Author: speet3
Date: 2012-04-16 17:42:23 -0400 (Mon, 16 Apr 2012)
New Revision: 12419

Added:
   mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-manpage-generation-for-less-errors.patch
Modified:
   mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series
Log:
fix bad manpage generation in 1.0.1 package branch

Modified: mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series	2012-04-16 21:28:22 UTC (rev 12418)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series	2012-04-16 21:42:23 UTC (rev 12419)
@@ -1,3 +1,4 @@
 build-Doxygen.patch
 no-debug-or-profiling-info.patch
 require-manpage-generation.patch
+update-manpage-generation-for-less-errors.patch

Added: mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-manpage-generation-for-less-errors.patch
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-manpage-generation-for-less-errors.patch	                        (rev 0)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-manpage-generation-for-less-errors.patch	2012-04-16 21:42:23 UTC (rev 12419)
@@ -0,0 +1,19 @@
+--- a/CMake/exec2man.sh
++++ b/CMake/exec2man.sh
+@@ -63,6 +63,8 @@
+ # The awk script is a little ugly, but it is meant to format parameters
+ # 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".
+ ./$name -h | \
+   sed 's/^For further information/Additional Information\n\n For further information/' | \
+   sed 's/^consult the documentation/ consult the documentation/' | \
+@@ -73,5 +75,6 @@
+   sed 's/  / /g' | \
+   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 > $output
++  txt2man -P mlpack -t $name -d 1 | \
++  sed "s/^'\([A-Za-z0-9 ]*\)'/\"\1\"/" > $output
+ 




More information about the mlpack-svn mailing list