Trying to fix the application title
[quicknote] / support / builddeb.py
index 6eee5ad..3a2f793 100755 (executable)
@@ -1,23 +1,32 @@
 #!/usr/bin/python2.5
 
 import os
+import sys
 
 try:
        import py2deb
 except ImportError:
        import fake_py2deb as py2deb
 
+import constants
 
-__appname__ = "quicknote"
+
+__appname__ = constants.__app_name__
 __description__ = "Simple note taking application in a similar vein as PalmOS Memos"
 __author__ = "Christoph Wurstle"
 __email__ = "n800@axique.net"
-__version__ = "0.7.7"
+__version__ = constants.__version__
 __build__ = 0
 __changelog__ = '''
+0.7.8
+ * Spell checking
+ * Fixing the application title
+
 0.7.7
- * Slight modification to note history dialog to make each note more distinguishable
+ * Slight modifications to the note history and SQL dialogs
  * On zoom, also hiding the history status and button
+ * Touched up the note list, making it ellipsize at the end rather than scroll
+ * Storing of zoom, wordwrap, and fullscreen settings
 
 0.7.6
   * Line-wrap
@@ -71,7 +80,7 @@ def unflatten_files(files):
        return d
 
 
-if __name__ == "__main__":
+def build_package(distribution):
        try:
                os.chdir(os.path.dirname(sys.argv[0]))
        except:
@@ -82,12 +91,15 @@ if __name__ == "__main__":
        p.author = __author__
        p.mail = __email__
        p.license = "lgpl"
-       p.depends = "python2.5, python2.5-gtk2"
+       p.depends = {
+               "diablo": "python2.5, python2.5-gtk2",
+               "mer": "python2.6, python-gtk2",
+       }[distribution]
        p.section = "user/other"
        p.arch = "all"
        p.urgency = "low"
-       p.distribution = "chinook diablo"
-       p.repository = "extras-devel"
+       p.distribution = "chinook diablo fremantle mer"
+       p.repository = "extras"
        p.changelog = __changelog__
        p.postinstall = __postinstall__
        p.icon = "26x26-quicknote.png"
@@ -120,3 +132,20 @@ if __name__ == "__main__":
                __version__, __build__, changelog=__changelog__,
                tar=True, dsc=True, changes=True, build=False, src=True
        )
+       print "Building for %s finished" % distribution
+
+
+if __name__ == "__main__":
+       if len(sys.argv) > 1:
+               try:
+                       import optparse
+               except ImportError:
+                       optparse = None
+
+               if optparse is not None:
+                       parser = optparse.OptionParser()
+                       (commandOptions, commandArgs) = parser.parse_args()
+       else:
+               commandArgs = None
+               commandArgs = ["diablo"]
+       build_package(commandArgs[0])