commit: 4bd9670903829f38901356eae33c8ade04d32ed2
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sat May 2 20:58:23 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat May 2 20:58:23 2015 +0000
URL:
https://gitweb.gentoo.org/proj/udev-gentoo-scripts.git/commit/?id=4bd96709
Convert dist target to git built-in tarball handling
The "git archive" command can create *.gz tarballs without piping
through external utilities. The *.gz file is about the same size as a
*.bz2 file, so using *.gz in this case doesn't change the size of the
tarball significantly.
Makefile | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 9f88d4d..c0f63a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-PACKAGE = udev-init-scripts
VERSION = 28
-DISTNAME = $(PACKAGE)-$(VERSION)
+PACKAGE = udev-init-scripts
+TARBALL = $(PACKAGE)-$(VERSION).tar.gz
SYSCONFDIR ?= /etc
CONFD ?= $(SYSCONFDIR)/conf.d
@@ -19,8 +19,7 @@ check-git-repository:
git diff --cached --quiet || { echo 'STOP, you have uncommitted changes
in the index' ; false ; }
dist:
- git archive --format=tar --prefix=$(DISTNAME)/ $(VERSION) | \
- bzip2 > $(DISTNAME).tar.bz2
+ git archive --prefix=$(PACKAGE)-$(VERSION)/ $(VERSION) -o $(TARBALL)
snapshot: check-git-repository
git archive --format=tar --prefix=$(PACKAGE)/ HEAD | \