7 __description__ = "Todo Manager"
9 __email__ = "eopage@byu.net"
18 __postinstall__ = '''#!/bin/sh
20 gtk-update-icon-cache /usr/share/icons/hicolor
25 for root, dirs, files in os.walk(path):
27 if file.startswith("src-"):
28 fileParts = file.split("-")
29 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
30 assert unused == "src"
31 relPath = os.sep.join(relPathParts)
32 yield relPath, file, newName
35 def unflatten_files(files):
37 for relPath, oldName, newName in files:
40 d[relPath].append((oldName, newName))
44 if __name__ == "__main__":
46 os.chdir(os.path.dirname(sys.argv[0]))
50 p = Py2deb(__appname__)
51 p.description = __description__
55 p.depends = "python2.5, python2.5-gtk2"
56 p.section = "user/communication"
59 p.distribution = "chinook diablo"
60 p.repository = "extras-devel"
61 p.changelog = __changelog__
62 p.postinstall = __postinstall__
63 p.icon="26x26-doneit.png"
64 p["/usr/bin"] = [ "doneit.py" ]
65 for relPath, files in unflatten_files(find_files(".")).iteritems():
66 fullPath = "/usr/lib/doneit"
68 fullPath += os.sep+relPath
70 "|".join((oldName, newName))
71 for (oldName, newName) in files
73 # p["/usr/share/applications/hildon"] = ["doneit.desktop"]
74 # p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-doneit.png|doneit.png"]
75 # p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-doneit.png|doneit.png"]
76 # p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-doneit.png|doneit.png"]
80 __version__, __build__, changelog=__changelog__,
81 tar=True, dsc=True, changes=True, build=False, src=True