src/utils/mkUsageIndex.sh 1.4
1.4 2009/11/09 21:17:13 hiram
Updated for todays source tree particularies
Index: src/utils/mkUsageIndex.sh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/mkUsageIndex.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/utils/mkUsageIndex.sh 27 Jul 2006 22:35:32 -0000 1.3
+++ src/utils/mkUsageIndex.sh 9 Nov 2009 21:17:13 -0000 1.4
@@ -13,30 +13,36 @@
if [ $# -lt 1 ]; then
usage
fi
-cd /cluster/bin/x86_64
-find . -type f -newer xlogo \
+cd $HOME/bin/$MACHTYPE
+find . -type f \
| sed -e "s/^\.\///" | sort > /tmp/x86_64.list
echo "<HTML><HEAD><TITLE>kent source tree programs</TITLE></HEAD>"
echo "<BODY>"
echo "<TABLE>"
cd /tmp
-for F in `cat x86_64.list | egrep -v "windowmasker|hgCGAP"`
+for F in `cat /tmp/x86_64.list | egrep -v "aarToAxt|countNib|dumpNib|exonerateGffDoctor|cvsFiles|cvsStatusFilter|cvsup|cvscheck|hgCGAP"`
do
rm -f /tmp/useMes.txt
- /cluster/bin/x86_64/${F} > /tmp/useMes.txt 2>&1
+ echo "$HOME/bin/$MACHTYPE/${F}" 1>&2
+ $HOME/bin/$MACHTYPE/${F} > /tmp/useMes.txt 2>&1
TEXT="(execute error)"
if [ -s /tmp/useMes.txt ]; then
TEXT=`grep -v pslDiff /tmp/useMes.txt | head -3 | \
sed -e "/^[Uu][Ss][Aa][Gg][Ee]:/,$ d" |
sed -e "/^Error: wrong/d; /^wrong # of args/d; /^$/d" |
sed -e "/^options$/d" |
+ sed -e "s/^ *//" |
sed -e "s/^${F} - //"`
fi
- echo "<TR><TD ALIGN=LEFT>${F}:</TD><TD>${TEXT}</TD></TR>"
+ if [ "x${TEXT}y" = "xy" -o "${TEXT}" = "(execute error)" ]; then
+ echo "empty message: $F" 1>&2
+ else
+ echo "<TR><TD VALIGN=TOP ALIGN=LEFT>${F}:</TD><TD>${TEXT}</TD></TR>"
+ fi
done
echo "</TABLE>"
echo "</BODY></HTML>"