mirror of https://github.com/MidnightCommander/mc
* autogen.sh: Fix for gettext 0.11 family (and newer).
This commit is contained in:
parent
1c2f064d88
commit
0eaecaf79d
|
@ -1,3 +1,12 @@
|
||||||
|
2002-04-09 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
|
||||||
|
* autogen.sh: Fix for gettext 0.11 family (and newer).
|
||||||
|
|
||||||
|
2002-04-08 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* autogen.sh: Allow gettext newer than 0.10.39.
|
||||||
|
From Björn Eriksson <bjorn@bjornen.nu>
|
||||||
|
|
||||||
2002-04-03 Pavel Roskin <proski@gnu.org>
|
2002-04-03 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* doc/ru/Makefile.am: Distribute mc.ru.hlp and don't remove it
|
* doc/ru/Makefile.am: Distribute mc.ru.hlp and don't remove it
|
||||||
|
|
23
autogen.sh
23
autogen.sh
|
@ -18,18 +18,23 @@ 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/^.* //p'`
|
gettext_ver=`$GETTEXTIZE --version | sed -n '1s/\.//g;1s/.* //;1s/^\(...\)$/\100/p;1s/^\(....\)$/\10/p'`
|
||||||
|
if test $gettext_ver -lt 01038; then
|
||||||
|
echo "Don't use gettext older than 0.10.38" 2>&1
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
case $gettext_ver in
|
if test $gettext_ver -ge 01100; then
|
||||||
0.10.3[89]) ;;
|
GETTEXTIZE_ARGS='--intl --no-changelog'
|
||||||
*) echo "Don't use gettext other than versions 0.10.38 and 0.10.39"
|
fi
|
||||||
exit 1;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
rm -rf intl
|
rm -rf intl
|
||||||
$GETTEXTIZE --copy --force >tmpout || exit 1
|
$GETTEXTIZE $GETTEXTIZE_ARGS --copy --force >tmpout || exit 1
|
||||||
rm -f po/ChangeLog
|
|
||||||
mv po/ChangeLog~ po/ChangeLog
|
if test -e po/ChangeLog~; then
|
||||||
|
rm -f po/ChangeLog
|
||||||
|
mv po/ChangeLog~ po/ChangeLog
|
||||||
|
fi
|
||||||
|
|
||||||
if test ! -d config; then
|
if test ! -d config; then
|
||||||
mkdir config || exit 1
|
mkdir config || exit 1
|
||||||
|
|
Loading…
Reference in New Issue