[projects/pld-builder.new] version 0.6

glen glen at pld-linux.org
Wed Oct 17 23:06:34 CEST 2012


commit 8f88edb639ea3d90a5451da8abe944fc60c266f7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Oct 18 00:05:23 2012 +0300

    version 0.6
    
    update make dist to work with git

 Makefile | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/Makefile b/Makefile
index e82dc21..94e0ee9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,26 @@
 PACKAGE		:= pld-builder
-VERSION		:= 0.5
+VERSION		:= 0.6
 SNAP		:= $(shell date +%Y%m%d)
 
 # for make dist
-CVSROOT		:= :pserver:cvs at cvs.pld-linux.org:/cvsroot
-CVSMODULE	:= pld-builder.new
-CVSTAG		:= HEAD
+REMOTE		:= ssh://git@git.pld-linux.org/projects/$(MODULE)
+MODULE		:= pld-builder.new
+BRANCH		:= master
 
-all:
+all: compile
+
+compile:
 	python -c "import compileall; compileall.compile_dir('.')"
 
 clean:
 	find -name '*.pyc' | xargs rm -f
+	rm -f *.tar.bz2
+
+dist: compile $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2 compile
+	test ! -x ./dropin || ./dropin $<
+
+%.tar.bz2: %.tar
+	bzip2 -9 $<
 
-dist:
-	rm -rf $(PACKAGE)-$(VERSION).$(SNAP)
-	mkdir -p $(PACKAGE)-$(VERSION).$(SNAP)
-	cvs -d $(CVSROOT) export -d $(PACKAGE)-$(VERSION).$(SNAP) -r $(CVSTAG) $(CVSMODULE)
-	tar -cjf $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2 $(PACKAGE)-$(VERSION).$(SNAP)
-	rm -rf $(PACKAGE)-$(VERSION).$(SNAP)
-	test -x ./dropin && ./dropin $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2
+%.tar:
+	git archive --prefix=$(patsubst %.tar,%,$@)/ $(BRANCH) -o $@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/765941de40e08301084c92a6809bbc28aa68e36c



More information about the pld-cvs-commit mailing list