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:
parent
a9ac98e7bb
commit
46fb40237e
7
Makefile
7
Makefile
@ -99,12 +99,9 @@ debian:
|
|||||||
printf " py_compile.compile(\"/usr/share/python-support/relational/\"+i)\n" >> data/DEBIAN/postinst
|
printf " py_compile.compile(\"/usr/share/python-support/relational/\"+i)\n" >> data/DEBIAN/postinst
|
||||||
|
|
||||||
#Postrm file to remove optimized generated python files
|
#Postrm file to remove optimized generated python files
|
||||||
echo "#!/bin/sh" > data/DEBIAN/postrm
|
cp debscript/prerm data/DEBIAN/prerm
|
||||||
echo "set -e" >> data/DEBIAN/postrm
|
|
||||||
echo "rm -rf /usr/share/python-support/relational/" >> data/DEBIAN/postrm
|
|
||||||
echo "exit 0" >> data/DEBIAN/postrm
|
|
||||||
|
|
||||||
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/"
|
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
|
cp relational.deb relational_`./relational.py -v`+SVN`svn update | cut -d" " -f3 | tr -d "."`.deb
|
||||||
|
10
debscript/prerm
Normal file
10
debscript/prerm
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
remove)
|
||||||
|
rm -rf /usr/share/python-support/relational/;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user