]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- add make dist target to export clean code from cvs
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 17 Jul 2008 13:43:53 +0000 (13:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Makefile -> 1.2

Makefile

index 1b526f09b5aeea3f10ad43ed59770f5893c8d2b8..8d4ed48fdba7d854e58a80e3b51445002b9db462 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,20 @@
+PACKAGE                := pld-builder
+VERSION                := 0.1
+
+# for make dist
+CVSROOT                := :pserver:cvs@cvs.pld-linux.org:/cvsroot
+CVSMODULE      := pld-builder.new
+CVSTAG         := HEAD
+
 all:
        python -c "import compileall; compileall.compile_dir('.')"
 
 clean:
        find -name '*.pyc' | xargs rm -f
+
+dist:
+       rm -rf $(PACKAGE)-$(VERSION)
+       mkdir -p $(PACKAGE)-$(VERSION)
+       cvs -d $(CVSROOT) export -d $(PACKAGE)-$(VERSION) -r $(CVSTAG) $(CVSMODULE)
+       tar -cjf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
+       rm -rf $(PACKAGE)-$(VERSION)
This page took 0.126767 seconds and 4 git commands to generate.