Mercurial > pidgin
diff setup-gettext @ 11301:a09a5d64f33f
[gaim-migrate @ 13501]
This apparently fixes setup-gettext for gettext versions in x.y format
rather than x.y.z format. see sf patch 1218157
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 18 Aug 2005 18:11:12 +0000 |
parents | 904d03bfccce |
children | 8ed35c29007f |
line wrap: on
line diff
--- a/setup-gettext Thu Aug 18 06:36:05 2005 +0000 +++ b/setup-gettext Thu Aug 18 18:11:12 2005 +0000 @@ -27,6 +27,7 @@ parse_gettext_version() { GETTEXT_VERSION=`$GETTEXT_TOOL --version | sed -n 's/^.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$/\1.\2.\3/p'` + test -z "$GETTEXT_VERSION" && GETTEXT_VERSION=`$GETTEXT_TOOL --version | sed -n 's/^.*\([0-9]\+\)\.\([0-9]\+\).*$/\1.\2/p'` GETTEXT_MAJOR_VERSION=`echo $GETTEXT_VERSION | cut -d. -f1` GETTEXT_MINOR_VERSION=`echo $GETTEXT_VERSION | cut -d. -f2` GETTEXT_MICRO_VERSION=`echo $GETTEXT_VERSION | cut -d. -f3`