Makefile 1.13 KB
Newer Older
1 2
SOFTWARE_BUILD_PATH='/opt/erp5/'`cat VERSION.txt`
PACKAGE_INSTALL_PATH='opt/erp5/'`cat VERSION.txt`
3 4 5
ifndef $(PACKAGE_VERSION)
PACKAGE_VERSION=`cat VERSION.txt`
endif
6

Łukasz Nowak's avatar
Łukasz Nowak committed
7
software: bin/buildout
8
	bin/buildout
9

Łukasz Nowak's avatar
Łukasz Nowak committed
10
bin/buildout:
11
	python bootstrap/bootstrap.py
12 13

# run make assert to check that all is working
14 15
assert: bin/python2.4
	bin/python2.4 tests/assertSoftware.py
16 17

debian-appliance:
18
	svn co --ignore-externals https://svn.erp5.org/repos/public/spec/debian-erp5-appliance/ debian-erp5-appliance
19 20 21 22
	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)
23 24
	mkdir -p debian-erp5-appliance/$(PACKAGE_INSTALL_PATH)
	mv $(SOFTWARE_BUILD_PATH)/* debian-erp5-appliance/$(PACKAGE_INSTALL_PATH)
25
	rm -rf debian-erp5-appliance/*.txt
26 27 28
	rm -rf debian-erp5-appliance/*.TXT
	rm -rf `find debian-erp5-appliance/ -type d -name .svn`
	rm -rf `find debian-erp5-appliance/ -name *.pyc`
29
	dpkg-deb -b debian-erp5-appliance/ erp5-`cat VERSION.txt`.deb
30