[NSIS 10/13] build: Add make dist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Christophe Fergeau <cfergeau@xxxxxxxxxx>

Some magic as we want to ship a generated .spec file in addition to the
files from the git repository.

Change-Id: I90d905697aa4f9092c65810467cd88dc611ed003
Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 55dae00..22f44e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 NAME=spice-nsis
 VERSION=0.103
 DISPLAYED_VERSION=$(VERSION)
+ARCHIVE=$(NAME)-$(VERSION).tar.gz
 
 # set to OVIRT to build the ovirt guest tools installer
 MODE=SPICE
@@ -155,3 +156,6 @@ clean:
 GENERATED = \
 	ovirt-guest-tools-iso.spec \
 	$(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
-- 
2.1.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]