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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Feb 1 16:54:12 EST 2012


Author: rcurtin
Date: 2012-02-01 16:54:11 -0500 (Wed, 01 Feb 2012)
New Revision: 11334

Added:
   mlpack/trunk/CMake/allexec2man.sh
Log:
Script to make all man pages.


Added: mlpack/trunk/CMake/allexec2man.sh
===================================================================
--- mlpack/trunk/CMake/allexec2man.sh	                        (rev 0)
+++ mlpack/trunk/CMake/allexec2man.sh	2012-02-01 21:54:11 UTC (rev 11334)
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# Convert all of the executables in this directory that are not tests to man
+# pages in the given directory.
+#
+# Usage:
+#   allexec2man.sh /full/path/of/exec2man.sh output_directory/
+#
+# For the executable 'cheese', the file 'cheese.1.gz' will be created in the
+# output directory.
+exec2man=$1
+outdir=$2
+
+for program in `find . -perm /u=x,g=x,o=x | \
+                grep -v '[.]$' | \
+                grep -v '_test$' | \
+                sed 's|^./||'`; do
+  echo "Generating man page for $program...";
+  $1 $program $outdir/$program.1
+  gzip $outdir/$program.1
+done


Property changes on: mlpack/trunk/CMake/allexec2man.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the mlpack-svn mailing list