| 1 |
Author: Yaroslav Halchenko |
| 2 |
Last-Update: 2012-01-23 15:58:17 -0500 |
| 3 |
Description: Sorting for better reproducibility |
| 4 |
|
| 5 |
--- cmtk-3.2.2.orig/scripts/gen_manpages |
| 6 |
+++ cmtk-3.2.2/scripts/gen_manpages |
| 7 |
@@ -75,7 +75,7 @@ cmtk \- the Computational Morphometry To |
| 8 |
This helper script provides a unified access to all command line tools provided by CMTK. Please specify CMTK's command to run and its options. See \fBcmtk-<command>(1)\fR manpage or output of \fBcmtk <command> --help\fR for <command> specific options |
| 9 |
.SH COMMANDS |
| 10 |
EOF |
| 11 |
-/bin/ls $MANDIR/*.1 | grep -v -e 'cmtk\.1' | while read f; do |
| 12 |
+/bin/ls $MANDIR/*.1 | grep -v -e 'cmtk\.1' | LC_ALL=C sort | while read f; do |
| 13 |
descr="$(grep -a -A1 '.SH DESCRIPTION' $f| tail -n 1)" |
| 14 |
cmd=${f%.*} |
| 15 |
cmd=${cmd##*cmtk-} |