]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Enable release procedure to work with lzma OLDRELEASE file.
authorGary V. Vaughan <gary@gnu.org>
Sun, 7 Sep 2008 08:17:37 +0000 (16:17 +0800)
committerGary V. Vaughan <gary@gnu.org>
Sun, 7 Sep 2008 08:17:37 +0000 (16:17 +0800)
* Makefile.maint (diffs, prev-tarball, new-tarball): If lzma
tarballs are present use them to generate the diffs, otherwise
use gz tarballs if they are present, or else complain if both
are missing.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
ChangeLog
Makefile.maint

index 23d9026c6081cc717d774165b2a90ec7b57a0210..07b50743f914f5028fa6c98cf3abcf42a894b2b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-09-07  Gary V. Vaughan  <gary@gnu.org>
 
+       Enable release procedure to work with lzma OLDRELEASE file.
+       * Makefile.maint (diffs, prev-tarball, new-tarball): If lzma
+       tarballs are present use them to generate the diffs, otherwise
+       use gz tarballs if they are present, or else complain if both
+       are missing.
+
        Set SCM version number to 2.2.7a.
        * configure.ac, libltdl/configure.ac (AC_INIT): Bump version
        number to 2.2.7a.
index 64f1757398b9c5259e0fe649e8df157d6f9d91b1..02284dfbd12735b1350acfbf3c5fd648216f2d14 100644 (file)
@@ -175,28 +175,38 @@ prev-tarball:
                then echo "LASTRELEASE is not set"; exit 1; fi
        @ofile="$(PACKAGE)-$(LASTRELEASE).tar.gz"; \
        if test -f $$ofile; then :; \
-       else echo "Cannot make diffs without $$ofile"; exit 1; fi
+       else ofile="$(PACKAGE)-$(LASTRELEASE).tar.lzma"; \
+          if test -f $$ofile; then :; \
+          else echo "Cannot make diffs without $$ofile"; exit 1; fi; fi
 
 .PHONY: new-tarball
 new-tarball:
 ## Make sure we have the new release tarball in the tree.
        @ofile="$(PACKAGE)-$(VERSION).tar.gz"; \
        if test -f $$ofile; then :; \
-       else echo "Cannot make diffs without $$ofile"; exit 1; fi
+       else ofile="$(PACKAGE)-$(VERSION).tar.lzma"; \
+          if test -f $$ofile; then :; \
+          else echo "Cannot make diffs without $$ofile"; exit 1; fi; fi
 
 DIFF = diff
 DIFF_OPTIONS = -ruNp
 
-.PHONY: diff
+.PHONY: diffs
 diffs: prev-tarball new-tarball
 ## Unpack the tarballs somewhere to diff them
        rm -rf delta-diff
        mkdir delta-diff
 
+       cd delta-diff; \
        ofile="../$(PACKAGE)-$(LASTRELEASE)-$(VERSION).diff.gz"; \
-       cd delta-diff \
-       && tar xzf "../$(PACKAGE)-$(LASTRELEASE).tar.gz" \
-       && tar xzf "../$(PACKAGE)-$(VERSION).tar.gz" \
+       otar="../$(PACKAGE)-$(LASTRELEASE).tar"; \
+       ntar="../$(PACKAGE)-$(VERSION).tar"; \
+       test -f "$$otar.gz" && otar="$$otar.gz" && ounpack="gzip"; \
+       test -f "$$ntar.gz" && ntar="$$ntar.gz" && nunpack="gzip"; \
+       test -f "$$otar.lzma" && otar="$$otar.lzma" && ounpack="lzma"; \
+       test -f "$$ntar.lzma" && ntar="$$ntar.lzma" && nunpack="zlma"; \
+       $$ounpack -c -d "$$otar" | tar xf - \
+       && $$nunpack -c -d "$$ntar" | tar xf - \
        && $(DIFF) $(DIFF_OPTIONS) \
                $(PACKAGE)-$(LASTRELEASE) $(PACKAGE)-$(VERSION) \
                | GZIP=$(GZIP_ENV) gzip -c > $$ofile \