summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-04-18 23:38:22 +0200
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-04-18 23:38:22 +0200
commitc3318622c7eba97f709f665578c7e9b23b784b16 (patch)
treebfa78c757091afad132e4d71e8ed841b00b8ca56 /setup.py
parent5388aa298e73ac1d09a4ec277df39b8c8fe7b397 (diff)
downloadpython-apt-c3318622c7eba97f709f665578c7e9b23b784b16.tar.gz
* include the icons into the build system
* fix the po creation for the changed file names
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 8d8ccf9f..798fea0e 100755
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,19 @@ for filepath in glob.glob("po/mo/*/LC_MESSAGES/*.mo"):
targetpath = os.path.dirname(os.path.join("share/locale",lang))
I18NFILES.append((targetpath, [filepath]))
+ICONS = []
+for size in glob.glob("data/icons/*"):
+ for category in glob.glob("%s/*" % size):
+ icons = []
+ for icon in glob.glob("%s/*" % category):
+ icons.append(icon)
+ ICONS.append(("share/icons/hicolor/%s/%s" % \
+ (os.path.basename(size), \
+ os.path.basename(category)), \
+ icons))
+print ICONS
+
+
os.system("intltool-merge -d po data/update-manager.schemas.in"\
" build/update-manager.schemas")
@@ -59,10 +72,7 @@ setup(name='update-manager',
('share/gconf/schemas',
glob.glob("build/*.schemas")
),
- ('share/icons/hicolor',
- ["data/icons/*"]
- ),
- ] + I18NFILES + HELPFILES,
+ ] + I18NFILES + HELPFILES + ICONS,
)