moved some scripts outside the makefile
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@92 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
2f0a12f9e0
commit
b498f61e68
6
Makefile
6
Makefile
@ -76,10 +76,12 @@ debian:
|
||||
|
||||
mkdir -p data/DEBIAN
|
||||
#package description
|
||||
debscript/gencontrol.sh data/DEBIAN/control
|
||||
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/prerm data/DEBIAN/prerm
|
||||
cp debscript/postinst data/DEBIAN/postinst
|
||||
|
||||
chmod 0755 data/DEBIAN/prerm data/DEBIAN/postinst
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
echo "Version: "`../relational.py -v | cut -d. -f1`":"`../relational.py -v`+SVN`svn update | cut -d" " -f3 | tr -d "."`
|
||||
echo "Package: relational"
|
||||
echo "Version: "`./relational.py -v | cut -d. -f1`":"`./relational.py -v`+SVN`svn update | cut -d" " -f3 | tr -d "."`
|
||||
echo "Architecture: all"
|
||||
echo "Maintainer: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>"
|
||||
echo "Installed-Size: "`du -s --apparent-size ../data/ | cut -f1`
|
||||
echo "Installed-Size: "`du -s --apparent-size data/ | cut -f1`
|
||||
echo "Depends: python-qt4 (>= 4.0.1-5), python (>= 2.3), debhelper (>= 5.0.38), python-central (>= 0.5.6), ttf-dejavu-core (>= 2.25-3)"
|
||||
echo "Recommends: libqt4-webkit (>= 4.4.3-1)"
|
||||
echo "Section: devel"
|
||||
@ -11,3 +12,5 @@
|
||||
echo "Description: Python implementation of Relational algebra."
|
||||
echo " This program provides a GUI to execute relational algebra queries."
|
||||
echo " It is meant to be used for educational purposes."
|
||||
echo ""
|
||||
echo ""
|
||||
|
6
debscript/postinst
Normal file
6
debscript/postinst
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/python
|
||||
import py_compile
|
||||
import os
|
||||
for i in os.listdir("/usr/share/python-support/relational/"):
|
||||
if i.endswith(".py"):
|
||||
py_compile.compile("/usr/share/python-support/relational/"+i)
|
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…
Reference in New Issue
Block a user