Works with real sh now. (not just bash pretending to be one)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@79 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2002-09-25 17:06:28 +00:00
parent bee1156382
commit 98b5e4103b
+4 -4
View File
@@ -2,7 +2,7 @@
if [ "$#" != 0 ]; then if [ "$#" != 0 ]; then
case "$1" in case "$1" in
(--version) --version)
cat <<EOF cat <<EOF
autogen.sh autogen.sh
CVS $Id$ CVS $Id$
@@ -13,7 +13,7 @@ the GNU General Public License. This program has absolutely no warranty.
EOF EOF
exit 0 exit 0
;; ;;
(--help) --help)
cat <<EOF cat <<EOF
Usage: $0 [OPTION] Usage: $0 [OPTION]
Generate files which are in distribution tarball but not in CVS. Generate files which are in distribution tarball but not in CVS.
@@ -25,13 +25,13 @@ Report bugs to <sc2-devel@lists.sourceforge.net>.
EOF EOF
exit 0 exit 0
;; ;;
(-*) -*)
# Don't parse backslashes in $0 or $1. # Don't parse backslashes in $0 or $1.
printf >&2 "%s: invalid option -- %s\n" "$0" "$1" printf >&2 "%s: invalid option -- %s\n" "$0" "$1"
printf >&2 "Try \"%s --help\" for more information.\n" "$0" printf >&2 "Try \"%s --help\" for more information.\n" "$0"
exit 1 exit 1
;; ;;
(*) *)
printf >&2 "%s: non-option arguments don't work.\n" printf >&2 "%s: non-option arguments don't work.\n"
printf >&2 "Try \"%s --help\" for more information.\n" "$0" printf >&2 "Try \"%s --help\" for more information.\n" "$0"
exit 1 exit 1