X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=posix-modules;h=e6f0f356deb4590311416ad071b1fa77accd2274;hb=a428fac0e9534d605382b75a647bd067b5d2e551;hp=54d68ca95af8839635e4ff2f2e033984cfc3c0f1;hpb=3f1fb31baf59beafb7faa9767d7ec8cb0e8fcdbe;p=gnulib.git diff --git a/posix-modules b/posix-modules index 54d68ca95..e6f0f356d 100755 --- a/posix-modules +++ b/posix-modules @@ -2,10 +2,10 @@ # # Copyright (C) 2002-2007 Free Software Foundation, Inc. # -# This program is free software; you can redistribute it and/or modify +# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -13,13 +13,12 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# along with this program. If not, see . # 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 +101,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 +116,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 \