[sword-cvs] sword ltmain.sh,1.2,1.3
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 24 Nov 2003 02:18:38 -0700
Update of /usr/local/cvsroot/sword
In directory www:/tmp/cvs-serv1633
Modified Files:
ltmain.sh
Log Message:
Added getEntryAttribute to support preverse headings in web interface
Index: ltmain.sh
===================================================================
RCS file: /usr/local/cvsroot/sword/ltmain.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ltmain.sh 22 Nov 2003 05:27:39 -0000 1.2
+++ ltmain.sh 24 Nov 2003 09:18:36 -0000 1.3
@@ -48,15 +48,18 @@
exit 0
fi
+# define SED for historic ltconfig's generated by Libtool 1.3
+test -z "$SED" && SED=sed
+
# The name of this program.
-progname=`$echo "$0" | sed 's%^.*/%%'`
+progname=`$echo "$0" | ${SED} 's%^.*/%%'`
modename="$progname"
[...1346 lines suppressed...]
;;
esac
- $echo "$modename: invalid operation mode \`$mode'" 1>&2
- $echo "$generic_help" 1>&2
- exit 1
+ if test -z "$exec_cmd"; then
+ $echo "$modename: invalid operation mode \`$mode'" 1>&2
+ $echo "$generic_help" 1>&2
+ exit 1
+ fi
fi # test -z "$show_help"
+
+if test -n "$exec_cmd"; then
+ eval exec $exec_cmd
+ exit 1
+fi
# We need to display help for each of the modes.
case $mode in