Cleanups
authorEd Page <eopage@byu.net>
Tue, 8 Jun 2010 23:47:38 +0000 (18:47 -0500)
committerEd Page <eopage@byu.net>
Tue, 8 Jun 2010 23:47:38 +0000 (18:47 -0500)
src/REPLACEME_gtk.py
support/builddeb.py

index 85a9b6b..4fa96ed 100755 (executable)
@@ -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")
index 04fd6e2..d12305a 100755 (executable)
@@ -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