From: Ed Page Date: Tue, 8 Jun 2010 23:47:38 +0000 (-0500) Subject: Cleanups X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=commitdiff_plain;h=58f7c3fdd78fa310c831beb1951238bd3ec0ade0;ds=sidebyside Cleanups --- diff --git a/src/REPLACEME_gtk.py b/src/REPLACEME_gtk.py index 85a9b6b..4fa96ed 100755 --- a/src/REPLACEME_gtk.py +++ b/src/REPLACEME_gtk.py @@ -25,10 +25,10 @@ _moduleLogger = logging.getLogger(__name__) PROFILE_STARTUP = False -class REPLACEMElProgram(hildonize.get_app_class()): +class REPLACEMEProgram(hildonize.get_app_class()): def __init__(self): - super(REPLACEMElProgram, self).__init__() + super(REPLACEMEProgram, self).__init__() if not hildonize.IS_HILDON_SUPPORTED: _moduleLogger.info("No hildonization support") diff --git a/support/builddeb.py b/support/builddeb.py index 04fd6e2..d12305a 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -15,7 +15,7 @@ __appname__ = constants.__app_name__ __description__ = """REPLACEME REPLACEME . -Homepage: +Homepage: REPLACEME """ __author__ = "Ed Page" __email__ = "eopage@byu.net" @@ -23,14 +23,14 @@ __version__ = constants.__version__ __build__ = constants.__build__ __changelog__ = """ REPLACEME -""" +""".strip() __postinstall__ = """#!/bin/sh -e gtk-update-icon-cache -f /usr/share/icons/hicolor -rm -f ~/.REPLACEME/REPLACEME.log -""" +rm -f ~/.%(name)s/%(name)s.log +""" % {"name": constants.__app_name__} __preremove__ = """#!/bin/sh -e """ @@ -101,19 +101,19 @@ def build_package(distribution): "diablo": "REPLACEME", "fremantle": "REPLACEME", # Fremantle natively uses 48x48 }[distribution] - p["/opt/REPLACEME/bin"] = [ "REPLACEME" ] + p["/opt/%s/bin" % constants.__appname__] = [ "%s.py" % constants.__appname__ ] for relPath, files in unflatten_files(find_files("src", ".")).iteritems(): - fullPath = "/opt/REPLACEME/lib" + fullPath = "/opt/%s/lib" % constants.__appname__ if relPath: fullPath += os.sep+relPath p[fullPath] = list( "|".join((oldName, newName)) for (oldName, newName) in files ) - p["/usr/share/applications/hildon"] = ["REPLACEME.desktop"] - p["/usr/share/icons/hicolor/26x26/hildon"] = ["REPLACEME"] - p["/usr/share/icons/hicolor/64x64/hildon"] = ["REPLACEME"] - p["/usr/share/icons/hicolor/scalable/hildon"] = ["REPLACEME"] + p["/usr/share/applications/hildon"] = ["%s.desktop" % constants.__appname__] + p["/usr/share/icons/hicolor/26x26/hildon"] = ["%s.png" % constants.__appname__] + p["/usr/share/icons/hicolor/64x64/hildon"] = ["%s.png" % constants.__appname__] + p["/usr/share/icons/hicolor/scalable/hildon"] = ["%s.png" % constants.__appname__] if distribution == "debian": print p