From: Bruno Haible Date: Mon, 7 Feb 2005 12:03:33 +0000 (+0000) Subject: Check the version number actively. X-Git-Tag: v0.14.2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62d22f1fb4cd68b07a6334116203f9e5bc91dfad;p=thirdparty%2Fgettext.git Check the version number actively. --- diff --git a/Admin/release-steps b/Admin/release-steps index 8844e6c30..9133def98 100644 --- a/Admin/release-steps +++ b/Admin/release-steps @@ -55,6 +55,6 @@ Tasks not to forget before release: - "make"; "make dist"; "make distcheck" - cd gettext-tools/misc; add-to-archive /somewhere/gettext-0.xx.yy.tar.gz - Then update the table in autopoint.in. + Then update the case statement and the table in autopoint.in. - again: "make dist" diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index b38e64e04..729b7a902 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,9 @@ +2005-02-05 Bruno Haible + + * autopoint.in: Check the version number, instead of relying on cvs + for doing so. + Reported by Paul Eggert. + 2005-01-10 Bruno Haible Security fixes. diff --git a/gettext-tools/misc/autopoint.in b/gettext-tools/misc/autopoint.in index 8b0f1c0eb..f7147e832 100644 --- a/gettext-tools/misc/autopoint.in +++ b/gettext-tools/misc/autopoint.in @@ -277,6 +277,21 @@ else fi fi +# Check whether the version number is supported. +case "$ver" in + 0.10.35 | 0.10.36 | 0.10.37 | 0.10.38 | 0.10.39 | 0.10.40 | \ + 0.11 | 0.11.1 | 0.11.2 | 0.11.3 | 0.11.4 | 0.11.5 | \ + 0.12 | 0.12.1 | \ + 0.13 | 0.13.1 | \ + 0.14 | 0.14.1 ) + ;; + *) + func_fatal_error "The AM_GNU_GETTEXT_VERSION declaration in your $configure_in\ + file requires the infrastructure from gettext-$ver but this version\ + is older. Please upgrade to gettext-$ver or newer." + ;; +esac + # We distribute the many different versions of the files in a CVS repository. # This guarantees a good compression rate: #