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