[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Add "make dist" for a zip package.



commit 6227b49d097f300686844d6a2761333bedef11b5
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu Jul 5 05:30:17 2012 -0700

    Add "make dist" for a zip package.
---
 Makefile |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 3b30d61..0becb59 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 PREFIX = /usr/local
 BINDIR = $(PREFIX)/bin
 
+VERSION = 0.0
+
+CLIENT_DIST_FILES = flashproxy-client.py flashproxy-reg-http.py README
+
 all:
 	:
 
@@ -10,9 +14,20 @@ install:
 
 clean:
 	rm -f *.pyc
+	rm -rf dist
 
 test:
 	./flashproxy-client-test.py
 	./flashproxy-test.js
 
-.PHONY: all clean test
+DISTNAME = flashproxy-client-$(VERSION)
+DISTDIR = dist/$(DISTNAME)
+dist/$(DISTNAME).zip:
+	rm -rf dist
+	mkdir -p $(DISTDIR)
+	cp -f $(CLIENT_DIST_FILES) $(DISTDIR)
+	cd dist && zip -q -r -9 $(DISTNAME).zip $(DISTNAME)
+
+dist: dist/$(DISTNAME).zip
+
+.PHONY: all clean test dist



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits