[mlpack-svn] r11426 - in 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
Tue Feb 7 14:42:14 EST 2012
Author: speet3
Date: 2012-02-07 14:42:13 -0500 (Tue, 07 Feb 2012)
New Revision: 11426
Modified:
mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.install
mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-dynamically-generate-manpages.patch
mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-to-svn-CMakeLists.patch
Log:
testing manpage installation to the package, hopefully
Modified: mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.install
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.install 2012-02-07 19:38:31 UTC (rev 11425)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.install 2012-02-07 19:42:13 UTC (rev 11426)
@@ -1 +1 @@
-/usr/bin/*
+#/usr/bin/*
Modified: mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-dynamically-generate-manpages.patch
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-dynamically-generate-manpages.patch 2012-02-07 19:38:31 UTC (rev 11425)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-dynamically-generate-manpages.patch 2012-02-07 19:42:13 UTC (rev 11426)
@@ -9,3 +9,13 @@
${CMAKE_CURRENT_SOURCE_DIR}/CMake/allexec2man.sh
${CMAKE_CURRENT_SOURCE_DIR}/CMake/exec2man.sh
${CMAKE_BINARY_DIR}/share/man
+@@ -157,7 +157,7 @@
+ )
+
+ # Set the rules to install the documentation.
+- install(DIRECTORY ${CMAKE_BINARY_DIR}/share/man/
+- DESTINATION share/man/man1/)
++# install(DIRECTORY ${CMAKE_BINARY_DIR}/share/man/
++# DESTINATION share/man/man1/)
+ endif (NOT TXT2MAN)
+ endif (UNIX)
Modified: mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-to-svn-CMakeLists.patch
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-to-svn-CMakeLists.patch 2012-02-07 19:38:31 UTC (rev 11425)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-to-svn-CMakeLists.patch 2012-02-07 19:42:13 UTC (rev 11426)
@@ -125,7 +125,7 @@
+done
--- /dev/null
+++ b/CMake/exec2man.sh
-@@ -0,0 +1,68 @@
+@@ -0,0 +1,73 @@
+#!/bin/bash
+# Convert the output of an MLPACK executable into a man page. This assumes that
+# the CLI subsystem is used to output help, that the executable is properly
@@ -188,9 +188,14 @@
+# txt2man -T -P mlpack -t $name -d 1
+
+# Now do it.
++# 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).
+./$name -h | \
+ awk -v syn="$synopsis" \
+ '{ if (NR == 1) print "NAME\n '$name' - "tolower($0)"\nSYNOPSIS\n "syn" \nDESCRIPTION\n" ; else print } ' | \
+ sed '/^[^ ]/ y/qwertyuiopasdfghjklzxcvbnm:/QWERTYUIOPASDFGHJKLZXCVBNM /' | \
++ sed 's/ / /g' | \
++ awk '/NAME/,/REQUIRED OPTIONS/ { print; } /REQUIRED OPTIONS/,0 { if (!/REQUIRED_OPTIONS/ && !/OPTIONS/) { if (/ --/) { printf "\n" } sub(/^[ ]*/, ""); sub(/ [ ]*/, " "); printf "%s ", $0; } else { if (!/REQUIRED OPTIONS/) { print "\n"$0; } } }' | \
+ txt2man -P mlpack -t $name -d 1 > $output
+
More information about the mlpack-svn
mailing list