Commit 5a56ec12 authored by Lucas Carvalho's avatar Lucas Carvalho

Now is possible to define different release values for both packages (erp5 and...

Now is possible to define different release values for both packages (erp5 and tiolive-application). Usage: make rpm-application PACKAGE_SOFTWARE_RELEASE=002 PACKAGE_APPLICATION_RELEASE=006.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34424 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c1c7201
......@@ -6,6 +6,12 @@ endif
ifndef $(PACKAGE_RELEASE)
PACKAGE_RELEASE="None"
endif
ifndef $(PACKAGE_SOFTWARE_RELEASE)
PACKAGE_SOFTWARE_RELEASE="None"
endif
ifndef $(PACKAGE_APPLICATION_RELEASE)
PACKAGE_APPLICATION_RELEASE="None"
endif
software: bin/buildout
bin/buildout
......@@ -41,7 +47,9 @@ rpm-appliance:
# set the correct version defined in the main buildout
sed -i "s,\$${checkout:location\}\/VERSION.txt,$(PACKAGE_VERSION),g" rpmgen/buildout.cfg
# set the correct release
if [ $(PACKAGE_RELEASE) != 'None' ]; then sed -i "s,release = mdv2010.0,release = $(PACKAGE_RELEASE),g" rpmgen/buildout.cfg; fi
if [ $(PACKAGE_RELEASE) != 'None' ]; then sed -i "s,release = 001,release = $(PACKAGE_RELEASE),g" rpmgen/buildout.cfg; fi
if [ $(PACKAGE_APPLICATION_RELEASE) != 'None' ]; then sed -i "/release \= 001/{x;/^$$/s//0/;y/012/123/;/2/{x;s/release = 001/release = $(PACKAGE_APPLICATION_RELEASE)/;x;};x;}" rpmgen/buildout.cfg; fi
if [ $(PACKAGE_SOFTWARE_RELEASE) != 'None' ]; then sed -i 's,release = 001, release = $(PACKAGE_SOFTWARE_RELEASE),1' rpmgen/buildout.cfg; fi
# it must use version defined in the main buildout
sed -i "s,\$$(shell cat parts/checkout/VERSION.txt), `cat VERSION.txt`,g" rpmgen/Makefile
sudo helpers/mandriva2010.0.sh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment