From: Christophe Fergeau <cferg...@redhat.com>

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 <cferg...@redhat.com>
---
 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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to