Using fakeroot instead of su in make debian

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@214 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2009-09-09 13:17:38 +07:00
parent 7579b54348
commit 9c12a662ea
2 changed files with 5 additions and 2 deletions

@ -94,3 +94,4 @@
- Improved futile_union_intersection_subtraction in case of A-A, when A is a sub-query (Rev 208)
- Improved futile_union_intersection_subtraction, handles when a branch of subtracion has a selection (Rev 209)
- Can load relations specified in command line (Rev 210)
- Using fakeroot instead of su in make debian (Rev 214)

@ -108,6 +108,8 @@ debian:
cp debscript/prerm data/DEBIAN/prerm
cp debscript/postinst 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/"
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