0db5493dd66e0280230196ffa620082b8cd69e0e
hiram
  Thu May 23 16:18:46 2013 -0700
protect this procedure from the hgsql command refs #9104
diff --git src/utils/userApps/mkREADME.sh src/utils/userApps/mkREADME.sh
index 1530378..21dc254 100755
--- src/utils/userApps/mkREADME.sh
+++ src/utils/userApps/mkREADME.sh
@@ -1,44 +1,44 @@
 #!/bin/sh
 # script to create a FOOTER (or README) file from all usage messages
 #	of binaries found in specified directory
 #
 #========================================================================
 #	$Id: mkREADME.sh,v 1.3 2009/07/31 21:14:03 ann Exp $
 #========================================================================
 #
 usage() {
     echo "usage: mkREADME.sh DESTDIR/BINDIR FOOTER"
     echo "where DESTDIR/BINDIR is where all the binaries are"
     echo "and FOOTER is the name of the result file"
     exit 255
 }
 
 if [ "$#" -ne 2 ]; then
     usage
 fi
 
 DESTDIR=$1
 RESULT=$2
 
 if [ ! -d "${DESTDIR}" ]; then
     echo "ERROR: specified destination directory \"${DESTDIR}\""
     echo "	does not exist."
     usage
 fi
 
 cd "${DESTDIR}"
 
 echo "================================================================" \
 	> "${RESULT}"
 
-find . -mindepth 1 -type f | sed -e "s/^.\///; /mkREADME.sh/d" | sort | \
+find . -mindepth 1 -type f | grep -v -w hgsql | sed -e "s/^.\///; /mkREADME.sh/d" | sort | \
 while read F
 do
     if [ -x "${F}" ]; then
 	echo "========   ${F}   ===================================="
 	echo "================================================================"
 	./${F}
 	echo "================================================================"
 	fi
 done >> "${RESULT}" 2>&1