gettext_ver: Add leading 0 before one digit minor numbers like 0.11.1

This commit is contained in:
Andrew V. Samoilov 2002-04-12 06:58:36 +00:00
parent 0eaecaf79d
commit baa2f67b78

View File

@ -18,7 +18,7 @@ cd $srcdir
rm -rf autom4te.cache vfs/samba/autom4te.cache rm -rf autom4te.cache vfs/samba/autom4te.cache
# Ensure that gettext is reasonably new. # Ensure that gettext is reasonably new.
gettext_ver=`$GETTEXTIZE --version | sed -n '1s/\.//g;1s/.* //;1s/^\(...\)$/\100/p;1s/^\(....\)$/\10/p'` gettext_ver=`$GETTEXTIZE --version | sed -n '1s/\.//g;1s/.* //;1s/^\(...\)$/\100/p;1s/^\(...\)\(.\)$/\10\2/p'`
if test $gettext_ver -lt 01038; then if test $gettext_ver -lt 01038; then
echo "Don't use gettext older than 0.10.38" 2>&1 echo "Don't use gettext older than 0.10.38" 2>&1
exit 1 exit 1