[Spice-devel] [NSIS 11/13] build: Small make dist improvements

Yedidyah Bar David didi at redhat.com
Thu Nov 19 06:48:21 PST 2015


From: Christophe Fergeau <cfergeau at redhat.com>

Use bz2 rather than gz, add version number to the output directory, and
use the more portable /dev/stdin instead of /proc/self/fd/0.

Change-Id: I90096405ded7eb9102818185482fa27dc4c33b72
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 22f44e5..2064774 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 NAME=spice-nsis
 VERSION=0.103
 DISPLAYED_VERSION=$(VERSION)
-ARCHIVE=$(NAME)-$(VERSION).tar.gz
+ARCHIVE=$(NAME)-$(VERSION).tar.bz2
 
 # set to OVIRT to build the ovirt guest tools installer
 MODE=SPICE
@@ -158,4 +158,4 @@ GENERATED = \
 	$(NULL)
 
 dist: ovirt-guest-tools-iso.spec
-	git ls-files | tar --files-from /proc/self/fd/0 -czf "$(ARCHIVE)" --owner=root --group=root --transform 's,^,$(NAME)/,' ovirt-guest-tools-iso.spec
+	git ls-files | tar --files-from /dev/stdin -jcf "$(ARCHIVE)" --owner=root --group=root --transform 's,^,$(NAME)-$(VERSION)/,' ovirt-guest-tools-iso.spec
-- 
2.1.4



More information about the Spice-devel mailing list