aboutsummaryrefslogtreecommitdiff
path: root/pixmaps
diff options
context:
space:
mode:
Diffstat (limited to 'pixmaps')
-rw-r--r--pixmaps/Makefile.am3
-rw-r--r--pixmaps/icons/Makefile.am9
-rwxr-xr-xpixmaps/icons/icon-theme-installer14
3 files changed, 13 insertions, 13 deletions
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
3SUBDIRS = 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
10install_icon_exec = $(top_srcdir)/pixmaps/icons/icon-theme-installer -t 10install_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)"
13install-data-local: 12install-data-local:
14 $(install_icon_exec) -i $(theme_icons) 13 $(install_icon_exec) -i "${theme_icons}"
15 14
16uninstall-hook: 15uninstall-hook:
17 $(install_icon_exec) -u $(theme_icons) 16 $(install_icon_exec) -u "${theme_icons}"
18 17
19MAINTAINERCLEANFILES = Makefile.in 18MAINTAINERCLEANFILES = Makefile.in
20EXTRA_DIST = $(wildcard *.svg *.png) 19EXTRA_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
33spec 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
66prefix 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
68a
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
77while getopts "iut:b:d:s:m:x:" flag; do 76while 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
155into $install_path" 153into $install_path"
156 exit 1 154 exit 1