Commit 92f91146 authored by Lucas Carvalho's avatar Lucas Carvalho

Now the software version is not same of package version. You can define...

Now the software version is not same of package version. You can define package version executing make debian-appliance PACKAGE_VERSION=007.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33341 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e226e448
SOFTWARE_BUILD_PATH='/opt/erp5/'`cat VERSION.txt`
PACKAGE_INSTALL_PATH='opt/erp5/'`cat VERSION.txt`
ifndef $(PACKAGE_VERSION)
PACKAGE_VERSION=`cat VERSION.txt`
endif
software: bin/buildout
bin/buildout
......@@ -12,14 +15,16 @@ assert: bin/python2.4
bin/python2.4 tests/assertSoftware.py
debian-appliance:
svn co https://svn.erp5.org/repos/public/erp5/trunk/buildout $(SOFTWARE_BUILD_PATH)
cd $(SOFTWARE_BUILD_PATH); $(MAKE) $(MFLAGS)
svn co --ignore-externals https://svn.erp5.org/repos/public/spec/debian-erp5-appliance/ debian-erp5-appliance
sed -i "s,__VERSION__,$(PACKAGE_VERSION),g" debian-erp5-appliance/DEBIAN/control
sed -i "s,__VERSION__,`cat VERSION.txt`,g" debian-erp5-appliance/DEBIAN/prerm
svn co https://svn.erp5.org/repos/public/erp5/trunk/buildout $(SOFTWARE_BUILD_PATH)
cd $(SOFTWARE_BUILD_PATH); #$(MAKE) $(MFLAGS)
mkdir -p debian-erp5-appliance/$(PACKAGE_INSTALL_PATH)
mv $(SOFTWARE_BUILD_PATH)/* debian-erp5-appliance/$(PACKAGE_INSTALL_PATH)
rm -rf debian-erp5-appliance/*.txt
rm -rf debian-erp5-appliance/*.TXT
rm -rf `find debian-erp5-appliance/ -type d -name .svn`
rm -rf `find debian-erp5-appliance/ -name *.pyc`
dpkg-deb -b debian-erp5-appliance/ .
dpkg-deb -b debian-erp5-appliance/ erp5-`cat VERSION.txt`.deb
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