[Fusionforge-commits] r7258 - trunk

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Mar 26 23:27:21 CET 2009


Author: aljeux
Date: 2009-03-26 23:27:20 +0100 (Thu, 26 Mar 2009)
New Revision: 7258

Modified:
   trunk/Makefile
Log:
Tarball generation for buildbot added in Makefile (quite experimental)

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2009-03-26 22:27:11 UTC (rev 7257)
+++ trunk/Makefile	2009-03-26 22:27:20 UTC (rev 7258)
@@ -3,6 +3,16 @@
 DISTSUSE=$(shell grep -qi 'SuSE' /etc/issue && echo rh)
 DIST=$(DISTDEBIAN)$(DISTREDHAT)$(DISTSUSE)
 
+BUILDRESULT=$(CURDIR)/result
+
+VER=$(shell LANG=C grep '>software_version' gforge/common/include/FusionForge.class.php | cut -d\' -f2)
+TAG=$(shell LANG=C svn log -r HEAD -l 1 | awk '{ if ($$1=="Tag-Release") print $$2}')
+ifeq ($(TAG),)
+	VERSION=fusionforge-$(VER)-$(shell LANG=C svn info | grep Revision | cut -d: -f2| sed 's/ //g')
+else
+	VERSION=fusionforge-$(VER)
+endif
+
 switch:
 	@echo "=========================================================================="
 	@echo "Use one of the following target with "
@@ -13,5 +23,20 @@
 check:
 	cd tests ; php AllTests.php
 
+buildall: buildtar
+	make -f Makefile.debian all 
+	make -f Makefile.rh all 
+
+buildtar:
+	rm -fr /tmp/$(VERSION)
+	find gforge -type f -or -type l | grep -v '/.svn/' | grep -v '^./debian' | grep -v '^./deb-specific' | grep -v '^./rpm-specific' | grep -v '^./gforge.spec' | grep -v '^./README.setup' | grep -v '^./setup' | cpio -pdumB /tmp/$(VERSION)
+	cd /tmp/$(VERSION)/gforge; for l in eu bg ca zh_TW nl en eo fr de el he id it ja ko la nb pl pt_BR pt ru zh_CN es sv th ; do mkdir -p locales/$$l/LC_MESSAGES && msgfmt -o locales/$$l/LC_MESSAGES/gforge.mo translations/$$l.po ; done
+	cd /tmp/; tar jcf $(BUILDRESULT)/$(VERSION).tar.bz2 $(VERSION)
+	cd /tmp/$(VERSION); tar zxf ~/depot/libphp-jpgraph_1.5.2.orig.tar.gz
+	cd /tmp/$(VERSION); patch -p0 < ~/depot/jpgraph-1.5.2-php5_and_liberation_fonts.patch
+	cd /tmp/$(VERSION); mkdir jpgraph; mv jpgraph-1.5.2/src/* jpgraph; rm -fr jpgraph-1.5.2
+	cd /tmp; tar jcf $(BUILDRESULT)/$(VERSION)-allinone.tar.bz2 $(VERSION)
+	rm -fr /tmp/$(VERSION)
+
 %:
 	@make -f Makefile.$(DIST) $@




More information about the Fusionforge-commits mailing list