~vcs-imports/kupfer/master-new

« back to all changes in this revision

Viewing changes to auxdata/wscript

  • Committer: Ulrik Sverdrup
  • Date: 2010-05-14 21:22:49 UTC
  • Revision ID: git-v1:5742b11fbf80a4e66b45fb9c5de844edea32d642
Use Nasser's kupfer icon

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
                                Utils.subst_vars("${DATADIR}/mime", bld.env)])
49
49
                bld.exec_command(["update-desktop-database",
50
50
                                Utils.subst_vars("${DATADIR}/applications", bld.env)])
 
51
 
 
52
        icons_inst = bld.install_files("${DATADIR}/icons/hicolor/scalable/apps",
 
53
                                       "kupfer.svg")
 
54
 
 
55
        # Waf's "gnome" tool  -- def postinstall_icons():
 
56
        if icons_inst and bld.is_install:
 
57
                icon_dir = bld.get_install_path('${DATADIR}/icons/hicolor')
 
58
                if not Options.options.destdir:
 
59
                        Utils.pprint('YELLOW',"Updating Gtk icon cache.")
 
60
                        command='gtk-update-icon-cache -q -f -t %s' % icon_dir
 
61
                        ret=Utils.exec_command(command)
 
62
                else:
 
63
                        Utils.pprint('YELLOW','Icon cache not updated. After install, run this:')
 
64
                        Utils.pprint('YELLOW','gtk-update-icon-cache -q -f -t %s'%icon_dir)