[Erp5-report] r34075 lucas - /erp5/trunk/buildout/Makefile

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 24 20:30:53 CET 2010


Author: lucas
Date: Wed Mar 24 20:30:52 2010
New Revision: 34075

URL: http://svn.erp5.org?rev=34075&view=rev
Log:
- before building tiolive appliance .spec it is required to have erp5-5.4.6 installed because it uses /opt/erp5/5.4.6/bin/python2.4


Modified:
    erp5/trunk/buildout/Makefile

Modified: erp5/trunk/buildout/Makefile
URL: http://svn.erp5.org/erp5/trunk/buildout/Makefile?rev=34075&r1=34074&r2=34075&view=diff
==============================================================================
--- erp5/trunk/buildout/Makefile [utf8] (original)
+++ erp5/trunk/buildout/Makefile [utf8] Wed Mar 24 20:30:52 2010
@@ -43,4 +43,11 @@
 	sed -i "s,\$$(shell cat parts/checkout/VERSION.txt), `cat VERSION.txt`,g" rpmgen/Makefile
 	sudo helpers/mandriva2010.0.sh
 	# just make and wait...
-	cd rpmgen; make all
+	cd rpmgen; make
+	# now we have the erp5 software rpm and we need it installed to build tiolive application rpm
+	if test -d /home/`whoami`/rpmbuild/RPMS/x86_64; \
+	then find /home/`whoami`/rpmbuild/RPMS/x86_64/ -name  erp5-`cat VERSION.txt`* -print0 | xargs -0 sudo urpmi; \
+	else find /home/`whoami`/rpmbuild/RPMS/i586/ -name  erp5-`cat VERSION.txt`* -print0 | xargs -0 sudo urpmi; \
+ 	fi
+	# building tiolive appliance
+	sudo rpmbuild -bb rpmgen/spec/tiolive-application-buildout-mandriva2010.spec




More information about the Erp5-report mailing list