- Removed bloated debian patches

- Modified debian/rules to create both relational and relational-cli from the same python file
- Modified relational_gui to have different behavior depending on its name
- Do not try to pack examples directory for relational package
- Edited make source target


git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@274 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-03-04 12:18:22 +00:00
parent f33d534fd1
commit 4b7a9272f6
7 changed files with 24 additions and 160 deletions

View File

@@ -38,7 +38,7 @@ def printver(exit=True):
print
print "Written by Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>"
print
print "http://galileo.dmi.unict.it/wiki/relational/doku.php"
print "http://galileo.dmi.unict.it/wiki/relational/"
if exit:
sys.exit(0)
@@ -49,13 +49,20 @@ def printhelp(code=0):
print
print " -v Print version and exits"
print " -h Print this help and exits"
print " -q Uses QT user interface (default)"
#print " -c Uses curses user interface"
print " -r Uses readline user interface"
if sys.argv[0].endswith('relational-cli'):
print " -q Uses QT user interface"
print " -r Uses readline user interface (default)"
else:
print " -q Uses QT user interface (default)"
print " -r Uses readline user interface"
sys.exit(code)
if __name__ == "__main__":
x11=True #Will try to use the x11 interface
if sys.argv[0].endswith('relational-cli'):
x11=False
else:
x11=True #Will try to use the x11 interface
#Getting command line
try:
@@ -95,7 +102,7 @@ if __name__ == "__main__":
printhelp(12)
f=files[i].split('/')
defname=f[len(f)-1].lower()
if (defname.endswith(".csv") or defname.endswith(".tlb")): #removes the extension
if defname.endswith(".csv"): #removes the extension
defname=defname[:-4]
print 'Loading file "%s" with name "%s"' % (files[i],defname)
ui.loadRelation(files[i],defname)