aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-13 14:41:46 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-13 14:41:46 +0000
commitc49d4c65767f1b7853c69f19b449197d0ce1ea4a (patch)
treedb9f7419a892095cbba52d4e1384ac0624e91e5d
parenta775480627b118679e678cff34f9973a28e45b1a (diff)
expand dist into "normal" (clean svn), "working" (dirty svn, but export clean svn), and "testing" (export dirty svn)
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 99ee81cd..21bfdc71 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ layout:
ln -snf /var/tmp $(DESTDIR)/usr/tmp || exit $$?
ln -snf share/man $(DESTDIR)/usr/local/man || exit $$?
-distcheck:
+diststatus:
if test -d .svn ; then \
svnfiles=`svn status 2>&1 | egrep -v '^(U|P)'` ; \
if test "x$$svnfiles" != "x" ; then \
@@ -89,13 +89,20 @@ distcheck:
distforce:
rm -rf /tmp/$(PKG)
+ cp -pPR . /tmp/$(PKG)
+ tar -C /tmp -cvjpf /tmp/$(PKG).tar.bz2 $(PKG)
+ rm -rf /tmp/$(PKG)
+ du -b /tmp/$(PKG).tar.bz2
+
+distit:
+ rm -rf /tmp/$(PKG)
svn export . /tmp/$(PKG)
tar -C /tmp -cvjpf /tmp/$(PKG).tar.bz2 $(PKG)
rm -rf /tmp/$(PKG)
du -b /tmp/$(PKG).tar.bz2
-dist: distcheck distforce
+dist: diststatus distit
-.PHONY: layout dist distcheck distforce
+.PHONY: layout dist distforce distit diststatus
# vim: set ts=4 :