From a408e517df3284fd8c69b2fc54846cebdeeaf26e Mon Sep 17 00:00:00 2001 From: LtWorf Date: Tue, 10 Aug 2010 17:53:43 +0000 Subject: [PATCH] - 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 --- Makefile | 48 +--------------------------------- debian/relational-cli.manpages | 2 +- debscript/gencontrol.sh | 16 ------------ debscript/postinst | 12 --------- debscript/prerm | 10 ------- debscript/relational | 2 -- debscript/relational.desktop | 9 ------- 7 files changed, 2 insertions(+), 97 deletions(-) delete mode 100755 debscript/gencontrol.sh delete mode 100644 debscript/postinst delete mode 100644 debscript/prerm delete mode 100644 debscript/relational delete mode 100644 debscript/relational.desktop diff --git a/Makefile b/Makefile index e5084f5..33f1986 100644 --- a/Makefile +++ b/Makefile @@ -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 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 diff --git a/debian/relational-cli.manpages b/debian/relational-cli.manpages index a6aad3b..2e9e00f 100644 --- a/debian/relational-cli.manpages +++ b/debian/relational-cli.manpages @@ -1 +1 @@ -debian/relational-cli.1 +relational-cli.1 diff --git a/debscript/gencontrol.sh b/debscript/gencontrol.sh deleted file mode 100755 index 4897e41..0000000 --- a/debscript/gencontrol.sh +++ /dev/null @@ -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 " - 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 "" diff --git a/debscript/postinst b/debscript/postinst deleted file mode 100644 index 25ae0d2..0000000 --- a/debscript/postinst +++ /dev/null @@ -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) diff --git a/debscript/prerm b/debscript/prerm deleted file mode 100644 index 8865c44..0000000 --- a/debscript/prerm +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -e - -case $1 in - remove) - rm -rf /usr/share/python-support/relational/;; -esac - -exit 0 - diff --git a/debscript/relational b/debscript/relational deleted file mode 100644 index 9a2aae8..0000000 --- a/debscript/relational +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python /usr/share/python-support/relational/relational_gui.py $@ diff --git a/debscript/relational.desktop b/debscript/relational.desktop deleted file mode 100644 index c0c9dc2..0000000 --- a/debscript/relational.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name=Relational -Comment=Relational Algebra -Exec=relational -Icon=kexi -Terminal=0 -Type=Application -Encoding=UTF-8 -Categories=Education;