Updating changelist
[gc-dialer] / support / builddeb.py
index fe2925d..083042a 100755 (executable)
@@ -1,17 +1,44 @@
 #!/usr/bin/python2.5
 
-from py2deb import *
+import os
+import sys
+
+try:
+       import py2deb
+except ImportError:
+       import fake_py2deb as py2deb
+
 import constants
 
 
 __appname__ = constants.__app_name__
-__description__ = "Simple interface to Google's GrandCentral(tm) service"
+__description__ = "Touch screen enhanced interface to the GoogleVoice/GrandCentral phone service"
 __author__ = "Ed Page"
 __email__ = "eopage@byu.net"
 __version__ = constants.__version__
 __build__ = 0
 __changelog__ = '''
+1.0.3
+* Holding down a tab for a second will now force a refresh
+* Fixed a bug dealing with overzealously refreshing the contacts tab
+* Finding some undescriptive errors and made them more descriptive
+* Swapped the order GrandCentral and GoogleVoice appear in login window
+* Fixed the "Recent" and "Message" tabs, google changed things on me again
+
+1.0.2
+* Random bug fixes
+* Random performance improvements
+
+1.0.1
+* Fixed a voicemail transcripts due to a GoogleVoice change
+
+1.0.0
+* Added names to the recent tab for GoogleVoice
+
 0.9.9
+* SMS From Dialpad
+* Display of names for messages tab
+* Condensed messages/recent's date column
 
 0.9.8
  * Added columns to recent view and messages view to help seperate messages
@@ -83,9 +110,9 @@ __changelog__ = '''
 '''
 
 
-__postinstall__ = '''#!/bin/sh
+__postinstall__ = '''#!/bin/sh -e
 
-gtk-update-icon-cache /usr/share/icons/hicolor
+gtk-update-icon-cache -f /usr/share/icons/hicolor
 '''
 
 
@@ -109,26 +136,29 @@ def unflatten_files(files):
        return d
 
 
-if __name__ == "__main__":
+def build_package(distribution):
        try:
                os.chdir(os.path.dirname(sys.argv[0]))
        except:
                pass
 
-       p = Py2deb(__appname__)
+       p = py2deb.Py2deb(__appname__)
        p.description = __description__
        p.author = __author__
        p.mail = __email__
        p.license = "lgpl"
-       p.depends = "python2.5, python2.5-gtk2, python2.5-xml"
+       p.depends = {
+               "diablo": "python2.5, python2.5-gtk2, python2.5-xml",
+               "mer": "python2.6, python-gtk2, python-xml, python-glade2",
+       }[distribution]
        p.section = "user/communication"
        p.arch = "all"
        p.urgency = "low"
-       p.distribution = "chinook diablo fremantle"
+       p.distribution = "chinook diablo fremantle mer"
        p.repository = "extras"
        p.changelog = __changelog__
        p.postinstall = __postinstall__
-       p.icon="26x26-dialcentral.png"
+       p.icon = "26x26-dialcentral.png"
        p["/usr/bin"] = [ "dialcentral.py" ]
        for relPath, files in unflatten_files(find_files(".")).iteritems():
                fullPath = "/usr/lib/dialcentral"
@@ -148,3 +178,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])