From c3318622c7eba97f709f665578c7e9b23b784b16 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Tue, 18 Apr 2006 23:38:22 +0200 Subject: * include the icons into the build system * fix the po creation for the changed file names --- setup.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'setup.py') 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, ) -- cgit v1.2.3