Commit 2539986
install icons and css layout
Changed files (2)
Diff
@@ -50,12 +50,6 @@ class Icons { f = find_file (icon_dir, name); if (likely (f.query_exists ())) return f; - f = find_file ("/usr/local/share/icons/supplement/", name);- if (likely (f.query_exists ())) return f;-- f = find_file ("/usr/share/icons/supplement/", name);- if (likely (f.query_exists ())) return f;- f = find_file ("./icons/", name); if (likely (f.query_exists ())) return f; @@ -70,7 +64,13 @@ class Icons { f = find_file ("icons\\", name); if (likely (f.query_exists ())) return f;- ++ f = find_file ("/usr/local/share/supplement/icons/", name);+ if (likely (f.query_exists ())) return f;++ f = find_file ("/usr/share/supplement/icons/", name);+ if (likely (f.query_exists ())) return f;+ return f; } @@ -21,3 +21,7 @@ def configure(conf): def build(bld): bld.recurse('src') + + start_dir = bld.path.find_dir('./') + bld.install_files('${PREFIX}/share/supplement/', start_dir.ant_glob('layout/*'), cwd=start_dir, relative_trick=True) + bld.install_files('${PREFIX}/share/supplement/', start_dir.ant_glob('icons/*'), cwd=start_dir, relative_trick=True)