diff --git a/Makefile b/Makefile index 93c1d1e..035c524 100644 --- a/Makefile +++ b/Makefile @@ -26,31 +26,44 @@ app: cp mac/PythonApplet.icns mac/__argvemulator_relational.py Relational.app/Contents/Resources/ debian: - mkdir data #Python files - mkdir data/usr/ - mkdir data/usr/share/ - mkdir data/usr/share/python-support/ - mkdir data/usr/share/python-support/relational/ + mkdir -p data/usr/share/python-support/relational/ cp *py data/usr/share/python-support/relational/ + + #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 data/usr/share/doc/ - mkdir data/usr/share/doc/relational - cp COPYING data/usr/share/doc/relational/copyright + 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 - gzip data/usr/share/doc/relational/changelog + echo "relational ("`./relational.py -v | cut -d. -f1`":"`./relational.py -v`") 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 data/usr/bin + mkdir -p data/usr/bin echo "#!/bin/bash" >> data/usr/bin/relational echo "python /usr/share/python-support/relational/relational.py $@" >> data/usr/bin/relational chmod a+x data/usr/bin/relational #desktop file - mkdir data/usr/share/applications/ + mkdir -p data/usr/share/applications/ echo "[Desktop Entry]" >> data/usr/share/applications/relational.desktop echo "Name=Relational">> data/usr/share/applications/relational.desktop echo "Comment=Relational Algebra">> data/usr/share/applications/relational.desktop @@ -61,19 +74,19 @@ debian: echo "Encoding=UTF-8">> data/usr/share/applications/relational.desktop echo "Categories=Education;">> data/usr/share/applications/relational.desktop - mkdir data/DEBIAN + mkdir -p data/DEBIAN #package description echo "Package: relational" >> data/DEBIAN/control echo "Version: "`./relational.py -v | cut -d. -f1`":"`./relational.py -v` >> data/DEBIAN/control echo "Architecture: all" >> data/DEBIAN/control echo "Maintainer: Salvo 'LtWorf' Tomaselli " >> data/DEBIAN/control echo "Installed-Size: "`du -bs --apparent-size data/ | cut -f1` >> data/DEBIAN/control - echo "Depends: python-qt4 (>= 4.0.1-5)" >> data/DEBIAN/control + echo "Depends: python-qt4 (>= 4.0.1-5), python (>= 2.3)" >> data/DEBIAN/control echo "Recommends: libqt4-webkit (>= 4.4.3-1)" >> data/DEBIAN/control - echo "Section: developement" >> data/DEBIAN/control + echo "Section: devel" >> data/DEBIAN/control echo "Priority: optional" >> data/DEBIAN/control echo "Homepage: http://galileo.dmi.unict.it/wiki/relational/" >> data/DEBIAN/control - echo "Description: Relational algebra in python.">> data/DEBIAN/control + echo "Description: Python implementation of Relational algebra.">> data/DEBIAN/control echo " This program provides a GUI to execute relational algebra queries.">> data/DEBIAN/control echo " It is meant to be used for educational purposes.">> data/DEBIAN/control su -c "chown -R root:root data/*; dpkg -b data/ relational.deb; rm -rf data/" diff --git a/relational.1 b/relational.1 new file mode 100644 index 0000000..dffec03 --- /dev/null +++ b/relational.1 @@ -0,0 +1,27 @@ +.TH "Relational" "1" +.SH "NAME" +relational \(em .Python implementation of Relational algebra. +.SH "SYNOPSIS" +.PP +\fBrelational\fR [\-v\fR\fP] + +.SH "DESCRIPTION" +.PP +Python implementation of Relational algebra. This program provides a GUI to execute relational algebra queries. It is meant to be used for educational purposes. + +.SH "OPTIONS" +.PP +These programs follow the usual GNU command line syntax, +with long options starting with two dashes (`\-'). A summary of +options is included below. However, the ordering is very strict \- +.IP "\fB-v\fP +Show version information. + +.SH "AUTHOR" +.PP +This manual page was written by Salvo 'LtWorf' Tomaselli for +the \fBDebian GNU/Linux\fP system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License +version 3 or any later version published by the Free Software Foundation. +.\" created by instant / docbook-to-man, Fri 10 Oct 2008, 19:02 diff --git a/relational.py b/relational.py index 31c9acd..bd2c650 100755 --- a/relational.py +++ b/relational.py @@ -24,7 +24,7 @@ import parser import relation import maingui -version="0.8" +version="0.7" if __name__ == "__main__": if len (sys.argv) > 1 and sys.argv[1] == "-v":