summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-11-17 16:40:11 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-11-19 16:05:16 +0100
commitb122d4154b464c5150875c0b1fccdf3fe9a97d1e (patch)
tree573ad14f564ec11fca39cf4526d0981ef9900d0c
parenta8340649c459351dc97de929c8707804cc4d083d (diff)
build: Small make dist improvements
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@redhat.com>
-rw-r--r--Makefile4
1 files 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