fixed debian package generation

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@60 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf 2008-11-15 15:51:04 +00:00
parent c400562006
commit 04e09236d1

View File

@ -6,7 +6,7 @@ clean:
rm *pyc || echo ok
rm -rf Relational.app || echo ok
rm -rf relational || echo ok
rm relational.tar.gz || echo ok
rm relational*.tar.gz || echo ok
rm -rf data || echo ok
rm -rf *.deb || echo ok
mac: app
@ -14,7 +14,7 @@ mac: app
mv Relational.app relational
mkdir relational/samples || echo Exists
cp samples/*tlb relational/samples
tar -zcvvf relational.tar.gz relational/
tar -zcvvf relational_`./relational.py -v`.tar.gz relational/
app:
mkdir Relational.app/ || echo Exists
mkdir Relational.app/Contents || echo Exists
@ -25,7 +25,7 @@ app:
cp mac/relational mac/Python Relational.app/Contents/MacOS
cp mac/PythonApplet.icns mac/__argvemulator_relational.py Relational.app/Contents/Resources/
deb:
debian:
mkdir data
#Python files
mkdir data/usr/
@ -76,6 +76,8 @@ deb:
echo "Description: Relational algebra in python.">> data/DEBIAN/control
echo " This program provides a GUI to execute relational algebra queries.">> data/DEBIAN/control
echo " It is meant to be used for educational purposes.">> data/DEBIAN/control
dpkg -b data/ relational_`./relational.py -v`.deb
rm -rf data/
su -c "chown -R root:root data/*; dpkg -b data/ relational.deb; rm -rf data/"
cp relational.deb relational_`./relational.py -v`.deb
rm -f relational.deb