From: Bruno Haible Date: Fri, 28 Jul 2000 21:45:27 +0000 (+0000) Subject: Create the sed scripts in the correct directory. X-Git-Tag: v0.10.36~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5b1bc7e81ad14900540632243712120c6deabc4;p=thirdparty%2Fgettext.git Create the sed scripts in the correct directory. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index cabd55bbf..fb98bcefc 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2000-07-28 Bruno Haible + + * gettext.m4 (AM_GNU_GETTEXT): The sed scripts are in $srcdir/intl, + and po2msg.sed, po2tbl.sed must be created in the intl subdir. + 2000-06-16 Bruno Haible * codeset.m4: New file, taken from fileutils-4.0u, with prefix AM. diff --git a/m4/gettext.m4 b/m4/gettext.m4 index d16262506..9fb329f85 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -265,19 +265,17 @@ __argz_count __argz_stringify __argz_next]) dnl Determine which catalog format we have (if any is needed) dnl For now we know about two different formats: dnl Linux libc-5 and the normal X/Open format - if test -f $srcdir/po2tbl.sed.in; then - test -d intl || mkdir intl - if test "$CATOBJEXT" = ".cat"; then - AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) + test -d intl || mkdir intl + if test "$CATOBJEXT" = ".cat"; then + AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) - dnl Transform the SED scripts while copying because some dumb SEDs - dnl cannot handle comments. - sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed - fi - dnl po2tbl.sed is always needed. - sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ - $srcdir/po2tbl.sed.in > po2tbl.sed + dnl Transform the SED scripts while copying because some dumb SEDs + dnl cannot handle comments. + sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed fi + dnl po2tbl.sed is always needed. + sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ + $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed dnl In the intl/Makefile.in we have a special dependency which makes dnl only sense for gettext. We comment this out for non-gettext