X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=gnulib-tool;h=592f1bf88f67bbddca4e9544245e579f7895751e;hb=95886da0b417a14882bb47bf4765f7af450d51da;hp=ed693e01632100453e343a1d7925b2f90d6ccd8c;hpb=97ddbcfa0bd12b45d00b74d298f6d14832981ee4;p=gnulib.git diff --git a/gnulib-tool b/gnulib-tool index ed693e016..592f1bf88 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2002-2013 Free Software Foundation, Inc. +# Copyright (C) 2002-2014 Free Software Foundation, Inc. # # 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 @@ -323,12 +323,13 @@ q version=' '`cd "$gnulib_dir" && ./build-aux/git-version-gen /dev/null | sed -e 's/-dirty/-modified/'` else # gnulib copy without versioning information. - date=`sed -e 's/ .*//;q' "$gnulib_dir"/ChangeLog` - version= + date=`zcat /usr/share/doc/gnulib/changelog.gz | sed -e 's/ .*//;q'` + version=`zcat /usr/share/doc/gnulib/NEWS.stable.gz | grep -o -m 1 ' [0-9]\+-stable'` + debversion=`dpkg-query --show --showformat '${Version}' gnulib` fi year=`"$gnulib_dir"/build-aux/mdate-sh "$self_abspathname" | sed -e 's,^.* ,,'` echo "\ -gnulib-tool (GNU $package $date)$version +gnulib-tool (GNU $package $date)$version Debian: $debversion Copyright (C) $year Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. @@ -898,6 +899,9 @@ if test "X$1" = "X--no-reexec"; then shift fi +# Unset CDPATH. Otherwise, output from 'cd dir' can surprise callers. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + # Command-line option processing. # Removes the OPTIONS from the arguments. Sets the variables: # - mode one of: list, find, import, add-import, remove-import,