From: Bruno Haible Date: Wed, 8 Jan 2003 13:52:11 +0000 (+0000) Subject: Interoperability with automake-1.7.2. X-Git-Tag: v0.12~1193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a64dc96e9b4af3f9355569a26bfa8836ace5cda2;p=thirdparty%2Fgettext.git Interoperability with automake-1.7.2. --- diff --git a/src/ChangeLog b/src/ChangeLog index e7af82ce2..07cce3d16 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-01-08 Bruno Haible + + * project-id: Make it work with configure files that use + AM_INIT_AUTOMAKE from automake-1.7.2. + 2002-12-04 Bruno Haible Fix handling of references to filenames starting with a digit. diff --git a/src/project-id b/src/project-id index 5ea3a17ef..7b1c86fbd 100755 --- a/src/project-id +++ b/src/project-id @@ -1,7 +1,7 @@ #!/bin/sh # Prints a package's identification PACKAGE VERSION or PACKAGE. # -# Copyright (C) 2001-2002 Free Software Foundation, Inc. +# Copyright (C) 2001-2003 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 @@ -20,7 +20,7 @@ want_version="$1" while true; do if test -f configure; then - package=`(grep '^PACKAGE_NAME=' configure; grep '^PACKAGE=' configure) | grep -v '=[ ]*$' | sed -e '1q' | sed -e 's/^[^=]*=//' | sed -e "s/^'//" -e "s/'$//"` + package=`(grep '^PACKAGE_NAME=' configure; grep '^ *PACKAGE=' configure) | grep -v '=[ ]*$' | sed -e '1q' | sed -e 's/^[^=]*=//' | sed -e "s/^'//" -e "s/'$//"` case "$package" in *[\"\$\`\{\}]*) # Some packages (gcal) retrieve the package name dynamically. @@ -33,7 +33,7 @@ while true; do package="GNU $package" fi if test -n "$want_version"; then - version=`(grep '^PACKAGE_VERSION=' configure; grep '^VERSION=' configure) | grep -v '=[ ]*$' | sed -e '1q' | sed -e 's/^[^=]*=//' | sed -e "s/^'//" -e "s/'$//"` + version=`(grep '^PACKAGE_VERSION=' configure; grep '^ *VERSION=' configure) | grep -v '=[ ]*$' | sed -e '1q' | sed -e 's/^[^=]*=//' | sed -e "s/^'//" -e "s/'$//"` case "$version" in *[\"\$\`\{\}]*) # Some packages (gcal, gcc, clisp) retrieve the version dynamically.