|
|
|
@ -59,50 +59,4 @@ app:
|
|
|
|
|
cp mac/PythonApplet.icns mac/__argvemulator_relational_gui.py Relational.app/Contents/Resources/
|
|
|
|
|
|
|
|
|
|
debian:
|
|
|
|
|
#Python files
|
|
|
|
|
mkdir -p data/usr/share/python-support/relational/
|
|
|
|
|
mkdir -p data/usr/share/python-support/relational/relational_gui
|
|
|
|
|
mkdir -p data/usr/share/python-support/relational/relational
|
|
|
|
|
cp *py data/usr/share/python-support/relational/
|
|
|
|
|
cp relational/*py data/usr/share/python-support/relational/relational/
|
|
|
|
|
cp relational_gui/*py data/usr/share/python-support/relational/relational_gui
|
|
|
|
|
#man
|
|
|
|
|
mkdir -p data/usr/share/man/man1
|
|
|
|
|
cp relational.1 data/usr/share/man/man1
|
|
|
|
|
gzip --best data/usr/share/man/man1/relational.1
|
|
|
|
|
#doc
|
|
|
|
|
mkdir -p data/usr/share/doc/relational
|
|
|
|
|
echo "Copyright (C) 2008 Salvo "LtWorf" Tomaselli" >> data/usr/share/doc/relational/copyright
|
|
|
|
|
echo "" >> data/usr/share/doc/relational/copyright
|
|
|
|
|
echo "License:" >> data/usr/share/doc/relational/copyright
|
|
|
|
|
echo "This program is under the GPLv3 license" >> data/usr/share/doc/relational/copyright
|
|
|
|
|
cp CHANGELOG data/usr/share/doc/relational/changelog
|
|
|
|
|
echo "relational ("`./relational_gui.py -v | cut -d. -f1`":"`./relational_gui.py -v`+SVN`svn update | cut -d" " -f3 | tr -d "."`") unstable; urgency=low" >> data/usr/share/doc/relational/changelog.Debian
|
|
|
|
|
echo "" >> data/usr/share/doc/relational/changelog.Debian
|
|
|
|
|
echo " * Automatically generated package, see changelog.gz" >> data/usr/share/doc/relational/changelog.Debian
|
|
|
|
|
echo "" >> data/usr/share/doc/relational/changelog.Debian
|
|
|
|
|
echo " -- Make <make@make.org> Fri, 10 Oct 2008 19:18:35 +0200">> data/usr/share/doc/relational/changelog.Debian
|
|
|
|
|
gzip --best data/usr/share/doc/relational/changelog.Debian
|
|
|
|
|
gzip --best data/usr/share/doc/relational/changelog
|
|
|
|
|
cp -r samples data/usr/share/doc/relational/examples
|
|
|
|
|
rm -rf data/usr/share/doc/relational/examples/.svn
|
|
|
|
|
#start script
|
|
|
|
|
mkdir -p data/usr/bin
|
|
|
|
|
cp debscript/relational data/usr/bin/relational
|
|
|
|
|
chmod a+x data/usr/bin/relational
|
|
|
|
|
#desktop file
|
|
|
|
|
mkdir -p data/usr/share/applications/
|
|
|
|
|
cp debscript/relational.desktop data/usr/share/applications/
|
|
|
|
|
mkdir -p data/DEBIAN
|
|
|
|
|
#package description
|
|
|
|
|
debscript/gencontrol.sh > data/DEBIAN/control
|
|
|
|
|
#cp debscript/rules data/DEBIAN
|
|
|
|
|
#Postrm file to remove optimized generated python files
|
|
|
|
|
cp debscript/prerm data/DEBIAN/prerm
|
|
|
|
|
cp debscript/postinst data/DEBIAN/postinst
|
|
|
|
|
chmod 0755 data/DEBIAN/prerm data/DEBIAN/postinst
|
|
|
|
|
fakeroot -- chown -R root:root data/*
|
|
|
|
|
fakeroot -- dpkg -b data/ relational.deb
|
|
|
|
|
fakeroot -- rm -rf data/
|
|
|
|
|
cp relational.deb relational_`./relational_gui.py -v`+SVN`svn update | cut -d" " -f3 | tr -d "."`.deb
|
|
|
|
|
rm -f relational.deb
|
|
|
|
|
dpkg-buildpackage
|
|
|
|
|