From: Bruno Haible Date: Tue, 22 May 2001 17:03:05 +0000 (+0000) Subject: plural.c gets installed now. X-Git-Tag: v0.10.38~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3098fadfa5e4289f164044aeb849bf20a11536be;p=thirdparty%2Fgettext.git plural.c gets installed now. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index ae5608de4..f9dd64c3a 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,8 @@ +2001-05-22 Bruno Haible + + * Makefile.in (install-data): Install plural.c as well. + (uninstall): Uninstall plural.c as well. + 2001-05-18 Bruno Haible * Makefile.in (dist): Don't assume $(srcdir) = ".". Distribute diff --git a/intl/Makefile.in b/intl/Makefile.in index 078be485f..889ba2392 100644 --- a/intl/Makefile.in +++ b/intl/Makefile.in @@ -190,6 +190,12 @@ install-data: all $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ + dists="$(DISTFILES.generated)"; \ + for file in $$dists; do \ + if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ + $(INSTALL_DATA) $$dir/$$file \ + $(DESTDIR)$(gettextsrcdir)/$$file; \ + done; \ dists="$(DISTFILES.obsolete)"; \ for file in $$dists; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ @@ -237,7 +243,7 @@ uninstall: : ; \ fi if test "$(PACKAGE)" = "gettext"; then \ - for file in VERSION ChangeLog $(DISTFILES.common); do \ + for file in VERSION ChangeLog $(DISTFILES.common) $(DISTFILES.generated); do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ diff --git a/misc/ChangeLog b/misc/ChangeLog index 428d1f537..900e1c133 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,7 @@ +2001-05-22 Bruno Haible + + * gettextize.in: Copy plural.c and touch it afterwards. + 2001-05-21 Alexandre Duret-Lutz * gettextize.in: Check for configure.ac in addition to configure.in. diff --git a/misc/gettextize.in b/misc/gettextize.in index 2c1e727a6..a28ac357b 100644 --- a/misc/gettextize.in +++ b/misc/gettextize.in @@ -160,8 +160,14 @@ done cd intl for file in *; do rm -f $srcdir/intl/$file - ($try_ln_s && ln -s $gettext_dir/intl/$file $srcdir/intl/$file && $echo "Symlinking file intl/$file") 2>/dev/null || - { $echo "Copying file intl/$file"; cp $file $srcdir/intl/$file; } + if test $file != plural.c; then + ($try_ln_s && ln -s $gettext_dir/intl/$file $srcdir/intl/$file && $echo "Symlinking file intl/$file") 2>/dev/null || + { $echo "Copying file intl/$file"; cp $file $srcdir/intl/$file; } + else + # plural.c is a generated file; it must be copied and touched. + $echo "Copying file intl/$file"; cp $file $srcdir/intl/$file + sleep 2; touch $srcdir/intl/$file + fi done # Copy files to po/ subdirectory.