~midori/midori/trunk

« back to all changes in this revision

Viewing changes to wscript

  • Committer: Christian Dywan
  • Date: 2008-07-27 05:39:39 UTC
  • Revision ID: git-v1:2cb278cdb32ef13e6a2fe744a26c4a09294d6b50
Add Midori and news-feed icons, improve waf scripts

Add small, optimized application icons and an all new
news-feed icon including optimized versions. The build
scripts are updated, and the data folder renamed to icons.
Plus the wscript_build is improved. Of course, Midori
now tests the icon theme for news-feed and uses it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        help='Disables native language support', dest='disable_nls')
66
66
 
67
67
def build (bld):
68
 
    bld.add_subdirs ('katze midori data')
 
68
    bld.add_subdirs ('katze midori icons')
69
69
 
70
70
    if bld.env ()['INTLTOOL']:
71
71
        bld.add_subdirs ('po')
89
89
        if not Params.g_options.destdir:
90
90
            # update the pixmap cache directory
91
91
            try:
92
 
                subprocess.call (['gtk-update-icon-cache', '-q', '-f', '-t', dir])
93
 
                Params.pprint ('YELLOW', "Updated Gtk icon cache.")
94
 
                icon_cache_updated = True
 
92
                uic = subprocess.Popen (['gtk-update-icon-cache', '-q', '-f', '-t', dir],
 
93
                                  stderr=subprocess.PIPE)
 
94
                if not uic.wait ():
 
95
                    Params.pprint ('YELLOW', "Updated Gtk icon cache.")
 
96
                    icon_cache_updated = True
95
97
            except:
96
98
                Params.pprint ('RED', "Failed to update icon cache.")
97
99
        if not icon_cache_updated: