[mlpack-svn] r11423 - in mlpack/conf/packages/mlpack/branches/1.0.X: . debian debian/patches debian/source man
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Feb 7 13:59:59 EST 2012
Author: speet3
Date: 2012-02-07 13:59:58 -0500 (Tue, 07 Feb 2012)
New Revision: 11423
Added:
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-include-unavailable-targets.patch
mlpack/conf/packages/mlpack/branches/1.0.X/debian/source/include-binaries
mlpack/conf/packages/mlpack/branches/1.0.X/man/
mlpack/conf/packages/mlpack/branches/1.0.X/man/allkfn.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/allknn.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/emst.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/gmm.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_generate.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_loglik.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_train.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_viterbi.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/kmeans.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/lars.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/linear_regression.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/mvu.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/nbc.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/nca.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/pca.1.gz
mlpack/conf/packages/mlpack/branches/1.0.X/man/radical.1.gz
Modified:
mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.manpages
mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series
mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-to-svn-CMakeLists.patch
Log:
Changes to make the package buildable, patches include removing unused targets from the updated CMakeLists, not building the man pages, and including the pre-made man pages in the debian.tar
Modified: mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.manpages
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.manpages 2012-02-07 16:54:05 UTC (rev 11422)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/mlpack-bin.manpages 2012-02-07 18:59:58 UTC (rev 11423)
@@ -1 +1 @@
-debian/tmp/usr/share/man/man1/*
+man/*
Added: 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 (rev 0)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-dynamically-generate-manpages.patch 2012-02-07 18:59:58 UTC (rev 11423)
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -144,7 +144,7 @@
+ message(WARNING "txt2man not found; man pages will not be generated.")
+ else (NOT TXT2MAN)
+ # We have the tools. We can make them.
+- add_custom_target(man ALL
++ add_custom_target(man
+ ${CMAKE_CURRENT_SOURCE_DIR}/CMake/allexec2man.sh
+ ${CMAKE_CURRENT_SOURCE_DIR}/CMake/exec2man.sh
+ ${CMAKE_BINARY_DIR}/share/man
Added: mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-include-unavailable-targets.patch
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-include-unavailable-targets.patch (rev 0)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/dont-include-unavailable-targets.patch 2012-02-07 18:59:58 UTC (rev 11423)
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -152,7 +152,7 @@
+ ${CMAKE_BINARY_DIR}/bin
+ DEPENDS
+ allkfn allknn emst gmm hmm_generate hmm_loglik hmm_train hmm_viterbi
+- kernel_pca kmeans lars linear_regression mvu nbc nca pca radical
++ kmeans lars linear_regression mvu nbc nca pca radical
+ COMMENT "Generating man pages from built executables."
+ )
+
Modified: mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series 2012-02-07 16:54:05 UTC (rev 11422)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/series 2012-02-07 18:59:58 UTC (rev 11423)
@@ -1,4 +1,5 @@
update-to-svn-CMakeLists.patch
build-Doxygen.patch
no-debug-or-profiling-info.patch
-require-manpage-generation.patch
+dont-include-unavailable-targets.patch
+dont-dynamically-generate-manpages.patch
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 16:54:05 UTC (rev 11422)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/patches/update-to-svn-CMakeLists.patch 2012-02-07 18:59:58 UTC (rev 11423)
@@ -98,3 +98,99 @@
+ DESTINATION share/man/man1/)
+ endif (NOT TXT2MAN)
+endif (UNIX)
+--- /dev/null
++++ b/CMake/allexec2man.sh
+@@ -0,0 +1,22 @@
++#!/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
++
++mkdir -p $outdir
++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 -f $outdir/$program.1
++done
+--- /dev/null
++++ b/CMake/exec2man.sh
+@@ -0,0 +1,68 @@
++#!/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
++# documented, and that the program is run in the directory that the executable
++# is in. Usually, this is used by CMake on Linux/UNIX systems to generate the
++# man pages.
++#
++# Usage:
++# exec2man.sh executable_name output_file_name
++#
++# No warranties...
++#
++# @author Ryan Curtin
++name=$1
++output=$2
++
++# Generate the synopsis.
++# First, required options.
++reqoptions=`./$name -h | \
++ awk '/Required options:/,/Options:/' | \
++ grep '^ --' | \
++ sed 's/^ --/--/' | \
++ sed 's/^--[A-Za-z0-9_-]* (\(-[A-Za-z0-9]\))/\1/' | \
++ sed 's/\(^-[A-Za-z0-9]\) [^\[].*/\1/' | \
++ sed 's/\(^-[A-Za-z0-9] \[[A-Za-z0-9]*\]\) .*/\1/' | \
++ sed 's/\(^--[A-Za-z0-9_-]*\) [^[].*/\1/' | \
++ sed 's/\(^--[A-Za-z0-9_-]* \[[A-Za-z0-9]*\]\) [^[].*/\1/' | \
++ tr '\n' ' ' | \
++ sed 's/\[//g' | \
++ sed 's/\]//g'`
++
++# Then, regular options.
++options=`./$name -h | \
++ awk '/Options:/,0' | \
++ grep '^ --' | \
++ sed 's/^ --/--/' | \
++ grep -v -- '--help' | \
++ grep -v -- '--info' | \
++ grep -v -- '--verbose' | \
++ sed 's/^--[A-Za-z0-9_-]* (\(-[A-Za-z0-9]\))/\1/' | \
++ sed 's/\(^-[A-Za-z0-9]\) [^\[].*/\1/' | \
++ sed 's/\(^-[A-Za-z0-9] \[[A-Za-z0-9]*\]\) .*/\1/' | \
++ sed 's/\(^--[A-Za-z0-9_-]*\) [^[].*/\1/' | \
++ sed 's/\(^--[A-Za-z0-9_-]* \[[A-Za-z0-9]*\]\) [^[].*/\1/' | \
++ tr '\n' ' ' | \
++ sed 's/\[//g' | \
++ sed 's/\]//g' | \
++ sed 's/\(-[A-Za-z0-9]\)\( [^a-z]\)/\[\1\]\2/g' | \
++ sed 's/\(--[A-Za-z0-9_-]*\)\( [^a-z]\)/\[\1\]\2/g' | \
++ sed 's/\(-[A-Za-z0-9] [a-z]*\) /\[\1\] /g' | \
++ sed 's/\(--[A-Za-z0-9_-]* [a-z]*\) /\[\1\] /g'`
++
++synopsis="$name [-h] [-v] $reqoptions $options";
++
++# Preview the whole thing first.
++#./$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 /' | \
++# txt2man -T -P mlpack -t $name -d 1
++
++# Now do it.
++./$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 /' | \
++ txt2man -P mlpack -t $name -d 1 > $output
++
Added: mlpack/conf/packages/mlpack/branches/1.0.X/debian/source/include-binaries
===================================================================
--- mlpack/conf/packages/mlpack/branches/1.0.X/debian/source/include-binaries (rev 0)
+++ mlpack/conf/packages/mlpack/branches/1.0.X/debian/source/include-binaries 2012-02-07 18:59:58 UTC (rev 11423)
@@ -0,0 +1,16 @@
+man/allkfn.1.gz
+man/allknn.1.gz
+man/emst.1.gz
+man/gmm.1.gz
+man/hmm_generate.1.gz
+man/hmm_loglik.1.gz
+man/hmm_train.1.gz
+man/hmm_viterbi.1.gz
+man/kmeans.1.gz
+man/lars.1.gz
+man/linear_regression.1.gz
+man/mvu.1.gz
+man/nbc.1.gz
+man/nca.1.gz
+man/pca.1.gz
+man/radical.1.gz
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/allkfn.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/allkfn.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/allknn.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/allknn.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/emst.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/emst.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/gmm.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/gmm.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_generate.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_generate.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_loglik.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_loglik.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_train.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_train.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_viterbi.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/hmm_viterbi.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/kmeans.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/kmeans.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/lars.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/lars.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/linear_regression.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/linear_regression.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/mvu.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/mvu.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/nbc.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/nbc.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/nca.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/nca.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/pca.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/pca.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: mlpack/conf/packages/mlpack/branches/1.0.X/man/radical.1.gz
===================================================================
(Binary files differ)
Property changes on: mlpack/conf/packages/mlpack/branches/1.0.X/man/radical.1.gz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
More information about the mlpack-svn
mailing list