]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make the 'dist' target more reliable.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Mar 2005 19:56:52 +0000 (19:56 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:21 +0000 (12:12 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/Makefile.in
gettext-runtime/po/ChangeLog
gettext-runtime/po/Makefile.in.in
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/po/ChangeLog
gettext-tools/po/Makefile.in.in

index 68e796025e39bc82d9389020c285d5ec6cc96cb1..083479b76ac32e40dc30a6fd61176a82dae10db1 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in (dist, distdir): Fail if some of the files to be
+       distributed do not exist or cannot be copied.
+       Suggested by Alexandre Duret-Lutz <adl@src.lip6.fr>.
+
 2005-02-24  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.14.2 released.
index 7010d88ee2f45322ecd9b0359b75a75471343156..612b59ca89d53c83d62c47d650fe94e7fb13442d 100644 (file)
@@ -485,7 +485,7 @@ dist distdir: Makefile
          $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
          for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
            if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
-           cp -p $$dir/$$file $(distdir); \
+           cp -p $$dir/$$file $(distdir) || exit 1; \
          done; \
        fi
 
index 9398667dceaa01f302dd4100a9e2a845f681da58..18a98b53661a7089c30a70cc2ea24a1848283ec0 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in.in (dist2): Fail if some of the files to be distributed
+       do not exist or cannot be copied.
+       Suggested by Alexandre Duret-Lutz <adl@src.lip6.fr>.
+
 2005-03-06  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.in.in (DISTFILES): Remove $(DOMAIN).pot, stamp-po.
index 30b8d2021da701ade87b11096730784705605e71..7d099c2146e646ddf4f0a4827a4f293c981df7eb 100644 (file)
@@ -323,9 +323,9 @@ dist2: stamp-po $(DISTFILES)
        if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
        for file in $$dists; do \
          if test -f $$file; then \
-           cp -p $$file $(distdir); \
+           cp -p $$file $(distdir) || exit 1; \
          else \
-           cp -p $(srcdir)/$$file $(distdir); \
+           cp -p $(srcdir)/$$file $(distdir) || exit 1; \
          fi; \
        done
 
index 09b1d70ff2423c17d210394c13d21fcb829b247c..eb0856cc63265390bfc3d93826e0a8bfc73ece71 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (src/Makefile): Adjust example 'dist' target.
+       Suggested by Alexandre Duret-Lutz <adl@src.lip6.fr>.
+
 2005-02-24  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.14.2 released.
index be6e740d9ebfb4c1c7f69c8a4bd9e2a081bbcec3..31c78ad6cfed4aa6463ef20539ca2668ea39adc6 100644 (file)
@@ -6895,7 +6895,7 @@ reasonable definition for it:
 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
 dist: Makefile $(DISTFILES)
        for file in $(DISTFILES); do \
-         ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
+         ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir) || exit 1; \
        done
 @end example
 
index a37b87e77caad181ea026502d6288a1127857531..15f9e4914bedf360186e5b093c141393d18d8b5d 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in.in (dist2): Fail if some of the files to be distributed
+       do not exist or cannot be copied.
+       Suggested by Alexandre Duret-Lutz <adl@src.lip6.fr>.
+
 2005-03-06  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.in.in (DISTFILES): Remove $(DOMAIN).pot, stamp-po.
index 30b8d2021da701ade87b11096730784705605e71..7d099c2146e646ddf4f0a4827a4f293c981df7eb 100644 (file)
@@ -323,9 +323,9 @@ dist2: stamp-po $(DISTFILES)
        if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
        for file in $$dists; do \
          if test -f $$file; then \
-           cp -p $$file $(distdir); \
+           cp -p $$file $(distdir) || exit 1; \
          else \
-           cp -p $(srcdir)/$$file $(distdir); \
+           cp -p $(srcdir)/$$file $(distdir) || exit 1; \
          fi; \
        done