summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-04-07 02:01:34 +0200
committerAndreas Gruenbacher <agruen@suse.de>2009-04-07 02:01:34 +0200
commit657b2a86e78b8c8e1e251d2f6f6f7f433f8c8e2f (patch)
tree58c306eb98f8a3823e8f41089d6751d1e10aeb4e
parent5e17eeea55ab9cbd312d6eb9718fd70d5044dfce (diff)
downloadpatch-657b2a86e78b8c8e1e251d2f6f6f7f433f8c8e2f.tar.gz
Optionally also create bzip2 and xz tarballs
-rw-r--r--ChangeLog1
-rw-r--r--Makefile.in12
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f03a197..378fb75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* src/util.c (file_id_hasher): Adapt to Gnulib type change.
* Makefile.in: Fix out-of-tree builds.
+ (dist): Optionally also create bzip2 and xz tarballs.
2009-04-06 Andreas Gruenbacher <agruen@suse.de>
diff --git a/Makefile.in b/Makefile.in
index 962e15a..58274a4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -337,10 +337,20 @@ dist:: $(DISTFILES)
) | sed -e 's,^$(srcdir)/,,' -e "s,^,$(PV)/," \
| LC_ALL=C sort` \
| gzip -9 > $(PV).tar.gz
+ @if which bzip2 2>/dev/null; then \
+ gzip -d < $(PV).tar.gz | bzip2 -9 > $(PV).tar.bz2; fi
+ @if which xz 2>/dev/null; then \
+ gzip -d < $(PV).tar.gz | xz -9 > $(PV).tar.xz; fi
@rm -rf $(PV)
@whereto=$$(if grep -q -E -- '-[0-9]+-[0-9a-z]+(-dirty)?$$' VERSION; \
then echo alpha; else echo ftp; fi); \
- echo -e "\n# gnupload --to $$whereto.gnu.org:patch $(PV).tar.gz\n"
+ echo; \
+ echo "# gnupload --to $$whereto.gnu.org:patch $(PV).tar.gz"; \
+ test ! -e $(PV).tar.bz2 || echo "# gnupload" \
+ "--to $$whereto.gnu.org:patch $(PV).tar.bz2"; \
+ test ! -e $(PV).tar.xz || echo "# gnupload" \
+ "--to $$whereto.gnu.org:patch $(PV).tar.xz"; \
+ echo
$(OBJS): config.h
COMMON = src/common.h $(STDBOOL_H)