Rename sysexits_.h to sysexits.in.h.
[pspp] / posix-modules
index 54d68ca95af8839635e4ff2f2e033984cfc3c0f1..269bb97f570382e0b0889053fdc635c8a0f76131 100755 (executable)
@@ -19,7 +19,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-09-08 22:27:19 $'
+cvsdatestamp='$Date: 2007-09-11 00:40:16 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -102,7 +102,7 @@ case "$0" in
     done
     IFS="$save_IFS"
     if test -z "$self_abspathname"; then
-      func_fatal_error "could not locate the gnulib-tool program - how did you invoke it?"
+      func_fatal_error "could not locate the posix-modules program - how did you invoke it?"
     fi
     ;;
 esac
@@ -117,6 +117,26 @@ while test -h "$self_abspathname"; do
 done
 gnulib_dir=`echo "$self_abspathname" | sed -e 's,/[^/]*$,,'`
 
+# Command-line option processing.
+while test $# -gt 0; do
+  case "$1" in
+    --help | --hel | --he | --h )
+      func_usage
+      exit $? ;;
+    --version | --versio | --versi | --vers | --ver | --ve | --v )
+      func_version
+      exit $? ;;
+    -* )
+      echo "posix-modules: unknown option $1" 1>&2
+      echo "Try 'posix-modules --help' for more information." 1>&2
+      exit 1 ;;
+    * )
+      echo "posix-modules: too many arguments" 1>&2
+      echo "Try 'posix-modules --help' for more information." 1>&2
+      exit 1 ;;
+  esac
+done
+
 (
   # Get the header modules.
   LC_ALL=C grep -h '^Gnulib module: ' "$gnulib_dir"/doc/headers/* 2>/dev/null \