diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-04-18 23:38:22 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-04-18 23:38:22 +0200 |
| commit | c3318622c7eba97f709f665578c7e9b23b784b16 (patch) | |
| tree | bfa78c757091afad132e4d71e8ed841b00b8ca56 /setup.py | |
| parent | 5388aa298e73ac1d09a4ec277df39b8c8fe7b397 (diff) | |
| download | python-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-x | setup.py | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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, ) |
