- Removed stuff for the debian binary package creation since the regular one can be created using the debian directory.

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@249 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2010-08-10 17:53:43 +07:00
parent 557fcabb01
commit a408e517df
7 changed files with 2 additions and 97 deletions

@ -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

@ -1 +1 @@
debian/relational-cli.1
relational-cli.1

@ -1,16 +0,0 @@
#!/bin/bash
echo "Package: relational"
echo "Version: "`./relational_gui.py -v | cut -d. -f1`":"`./relational_gui.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 "Depends: python-qt4 (>= 4.0.1-5), python (>= 2.3), ttf-dejavu-core (>= 2.23-1)"
echo "Recommends: libqt4-webkit (>= 4.4.3-1)"
echo "Section: devel"
echo "Priority: optional"
echo "Homepage: http://galileo.dmi.unict.it/wiki/relational/"
echo "Description: Educational tool for relational algebra (graphical user interface)"
echo " Relational is primarily a graphical user interface to provide a workspace for experimenting with relational algebra, an offshoot of"
echo " first-order logic."
echo ""
echo ""

@ -1,12 +0,0 @@
#!/usr/bin/python
import py_compile
import os
for i in os.listdir("/usr/share/python-support/relational/relational/"):
if i.endswith(".py"):
py_compile.compile("/usr/share/python-support/relational/relational/"+i)
for i in os.listdir("/usr/share/python-support/relational/relational_gui/"):
if i.endswith(".py"):
py_compile.compile("/usr/share/python-support/relational/relational_gui/"+i)
for i in os.listdir("/usr/share/python-support/relational/"):
if i.endswith(".py"):
py_compile.compile("/usr/share/python-support/relational/"+i)

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

@ -1,2 +0,0 @@
#!/bin/bash
python /usr/share/python-support/relational/relational_gui.py $@

@ -1,9 +0,0 @@
[Desktop Entry]
Name=Relational
Comment=Relational Algebra
Exec=relational
Icon=kexi
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Education;