aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-08-02 19:04:04 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-08-02 19:04:04 +0000
commitf3923275a813db9ce6b6fd18e161db5167dcce4a (patch)
treef14848fe3f244eb50caef76d7867957fadb4ee14 /Makefile.in
parent325413fec46a675559ee814ddfbdf70b66f61ae8 (diff)
downloadfetchmail-f3923275a813db9ce6b6fd18e161db5167dcce4a.tar.gz
fetchmail-f3923275a813db9ce6b6fd18e161db5167dcce4a.tar.bz2
fetchmail-f3923275a813db9ce6b6fd18e161db5167dcce4a.zip
Assume --name-prefix is available.
svn path=/trunk/; revision=1222
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index e76fe4fc..207a8497 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -205,7 +205,7 @@ all = $(docs) $(config) $(srcs) $(parser) $(headers) $(extra) $(scripts) \
$(srcdir)/contrib/* $(srcdir)/MANIFEST $(srcdir)/LIBOPIE.PATCH
MANIFEST: $(srcdir) Makefile.in
- @echo $(all) | tr "[ \t]" '\n' | sort | sed "s/\\./fetchmail-$(VERS)/" >MANIFEST
+ @echo $(all) | tr "[ \t]" '\n' | sed -e '/^\.\//s///' | sort >MANIFEST
@wc -l MANIFEST
FAQ: fetchmail.FAQ.html
@@ -229,11 +229,10 @@ dist: Makefile.in
ls -l fetchmail-$(VERS).tar.gz
@echo "Don't forget to build RPMs from root!"
-fetchmail-$(VERS).tar: $(all)
- (cd ..; tar -cf fetchmail-$(VERS).tar `cat fetchmail-$(VERS)/MANIFEST`)
- mv ../fetchmail-$(VERS).tar fetchmail-$(VERS).tar
-fetchmail-$(VERS).tar.gz: fetchmail-$(VERS).tar
- gzip -f fetchmail-$(VERS).tar
+# This requires my patch to tar-1.12, or a stock tar-1.13 (not yet released);
+# the version must implement the --name-prefix option.
+fetchmail-$(VERS).tar.gz: $(all)
+ tar --name-prefix='fetchmail-$(VERS)/' -czf fetchmail-$(VERS).tar.gz `cat MANIFEST`
# You need to be root to make this work
RPMROOT=/usr/src/redhat