coorected remove script

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@72 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf 2008-12-09 17:47:45 +00:00
parent a9ac98e7bb
commit 46fb40237e
2 changed files with 12 additions and 5 deletions

View File

@ -99,12 +99,9 @@ debian:
printf " py_compile.compile(\"/usr/share/python-support/relational/\"+i)\n" >> data/DEBIAN/postinst
#Postrm file to remove optimized generated python files
echo "#!/bin/sh" > data/DEBIAN/postrm
echo "set -e" >> data/DEBIAN/postrm
echo "rm -rf /usr/share/python-support/relational/" >> data/DEBIAN/postrm
echo "exit 0" >> data/DEBIAN/postrm
cp debscript/prerm data/DEBIAN/prerm
chmod 0755 data/DEBIAN/postrm data/DEBIAN/postinst
chmod 0755 data/DEBIAN/prerm data/DEBIAN/postinst
su -c "chown -R root:root data/*; dpkg -b data/ relational.deb; rm -rf data/"
cp relational.deb relational_`./relational.py -v`+SVN`svn update | cut -d" " -f3 | tr -d "."`.deb

10
debscript/prerm Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
case $1 in
remove)
rm -rf /usr/share/python-support/relational/;;
esac
exit 0