diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-02-14 02:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-02-14 02:54:06 +0000 |
commit | e3db4e7bda3b4c8b88a8716c8a6c365842fbb9be (patch) | |
tree | 7d86aded1c8277c1b77f143adbf8c71758ac53ec | |
parent | 6852b1d8f3d184bf9355c4f5e4a6f499db9aede6 (diff) | |
download | gnunet-gtk-e3db4e7bda3b4c8b88a8716c8a6c365842fbb9be.tar.gz gnunet-gtk-e3db4e7bda3b4c8b88a8716c8a6c365842fbb9be.zip |
icon install
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | pixmaps/Makefile.am | 3 | ||||
-rw-r--r-- | pixmaps/icons/Makefile.am | 9 | ||||
-rwxr-xr-x | pixmaps/icons/icon-theme-installer | 14 |
4 files changed, 15 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac index d9c259ee..8f58d3ed 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -337,6 +337,8 @@ src/plugins/daemon/Makefile | |||
337 | src/plugins/fs/Makefile | 337 | src/plugins/fs/Makefile |
338 | src/plugins/peers/Makefile | 338 | src/plugins/peers/Makefile |
339 | src/plugins/stats/Makefile | 339 | src/plugins/stats/Makefile |
340 | pixmaps/Makefile | ||
341 | pixmaps/icons/Makefile | ||
340 | po/Makefile.in | 342 | po/Makefile.in |
341 | po/Makefile | 343 | po/Makefile |
342 | gnunet-gtk.desktop | 344 | gnunet-gtk.desktop |
diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am new file mode 100644 index 00000000..06511861 --- /dev/null +++ b/pixmaps/Makefile.am | |||
@@ -0,0 +1,3 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | ||
2 | |||
3 | SUBDIRS = icons | ||
diff --git a/pixmaps/icons/Makefile.am b/pixmaps/icons/Makefile.am index 5075a644..2e3329ac 100644 --- a/pixmaps/icons/Makefile.am +++ b/pixmaps/icons/Makefile.am | |||
@@ -7,14 +7,13 @@ theme_icons = \ | |||
7 | apps,gnunet-gtk-24.png \ | 7 | apps,gnunet-gtk-24.png \ |
8 | apps,gnunet-gtk-32.png | 8 | apps,gnunet-gtk-32.png |
9 | 9 | ||
10 | install_icon_exec = $(top_srcdir)/pixmaps/icons/icon-theme-installer -t | 10 | install_icon_exec=${top_srcdir}/pixmaps/icons/icon-theme-installer -t ${theme} -s ${srcdir} -b ${themedir} -m "${mkinstalldirs}" -x "${INSTALL_DATA}" |
11 | $(theme) -s $(srcdir) -d "x$(DESTDIR)" -b $(themedir) -m | 11 | |
12 | "$(mkinstalldirs)" -x "$(INSTALL_DATA)" | ||
13 | install-data-local: | 12 | install-data-local: |
14 | $(install_icon_exec) -i $(theme_icons) | 13 | $(install_icon_exec) -i "${theme_icons}" |
15 | 14 | ||
16 | uninstall-hook: | 15 | uninstall-hook: |
17 | $(install_icon_exec) -u $(theme_icons) | 16 | $(install_icon_exec) -u "${theme_icons}" |
18 | 17 | ||
19 | MAINTAINERCLEANFILES = Makefile.in | 18 | MAINTAINERCLEANFILES = Makefile.in |
20 | EXTRA_DIST = $(wildcard *.svg *.png) | 19 | EXTRA_DIST = $(wildcard *.svg *.png) |
diff --git a/pixmaps/icons/icon-theme-installer b/pixmaps/icons/icon-theme-installer index b1c93f59..c166fa6d 100755 --- a/pixmaps/icons/icon-theme-installer +++ b/pixmaps/icons/icon-theme-installer | |||
@@ -30,7 +30,7 @@ | |||
30 | # music-player-banshee-16.png | 30 | # music-player-banshee-16.png |
31 | # | 31 | # |
32 | # The <SIZE> here is -16 and will expand to 16x16 per the icon theme | 32 | # The <SIZE> here is -16 and will expand to 16x16 per the icon theme |
33 | spec | 33 | # spec |
34 | # | 34 | # |
35 | # What follows is an example Makefile.am for icon theme installation: | 35 | # What follows is an example Makefile.am for icon theme installation: |
36 | # | 36 | # |
@@ -45,8 +45,8 @@ spec | |||
45 | # apps,music-player-banshee-32.png | 45 | # apps,music-player-banshee-32.png |
46 | # | 46 | # |
47 | # install_icon_exec = $(top_srcdir)/build/icon-theme-installer -t | 47 | # install_icon_exec = $(top_srcdir)/build/icon-theme-installer -t |
48 | $(theme) -s $(srcdir) -d "x$(DESTDIR)" -b $(themedir) -m | 48 | # $(theme) -s $(srcdir) -d "x$(DESTDIR)" -b $(themedir) -m |
49 | "$(mkinstalldirs)" -x "$(INSTALL_DATA)" | 49 | #"$(mkinstalldirs)" -x "$(INSTALL_DATA)" |
50 | # install-data-local: | 50 | # install-data-local: |
51 | # $(install_icon_exec) -i $(theme_icons) | 51 | # $(install_icon_exec) -i $(theme_icons) |
52 | # | 52 | # |
@@ -63,15 +63,14 @@ $(theme) -s $(srcdir) -d "x$(DESTDIR)" -b $(themedir) -m | |||
63 | # -u : Uninstall | 63 | # -u : Uninstall |
64 | # -t <theme> : Theme name (hicolor) | 64 | # -t <theme> : Theme name (hicolor) |
65 | # -b <dir> : Theme installation dest directory [x$(DESTDIR)] - Always | 65 | # -b <dir> : Theme installation dest directory [x$(DESTDIR)] - Always |
66 | prefix | 66 | # prefix |
67 | # this argument with x; it will be stripped but will act as | 67 | # this argument with x; it will be stripped but will act as |
68 | a | ||
69 | # placeholder for zero $DESTDIRs (only set by packagers) | 68 | # placeholder for zero $DESTDIRs (only set by packagers) |
70 | # -d <dir> : Theme installation directory [$(hicolordir)] | 69 | # -d <dir> : Theme installation directory [$(hicolordir)] |
71 | # -s <dir> : Source directory [$(srcdir)] | 70 | # -s <dir> : Source directory [$(srcdir)] |
72 | # -m <exec> : Command to exec for directory creation [$(mkinstalldirs)] | 71 | # -m <exec> : Command to exec for directory creation [$(mkinstalldirs)] |
73 | # -x <exec> : Command to exec for single file installation | 72 | # -x <exec> : Command to exec for single file installation |
74 | [$(INSTALL_DATA)] | 73 | # [$(INSTALL_DATA)] |
75 | # <remainging> : All remainging should be category,filename pairs | 74 | # <remainging> : All remainging should be category,filename pairs |
76 | 75 | ||
77 | while getopts "iut:b:d:s:m:x:" flag; do | 76 | while getopts "iut:b:d:s:m:x:" flag; do |
@@ -149,8 +148,7 @@ icon theme" | |||
149 | exit 1 | 148 | exit 1 |
150 | } | 149 | } |
151 | 150 | ||
152 | $($INSTALL_DATA_EXEC $SRC_DIR/$build_name $install_path) | 151 | $($INSTALL_DATA_EXEC $SRC_DIR/$build_name $install_path) || { |
153 | || { | ||
154 | echo "Failed to install $SRC_DIR/$build_name | 152 | echo "Failed to install $SRC_DIR/$build_name |
155 | into $install_path" | 153 | into $install_path" |
156 | exit 1 | 154 | exit 1 |