From 8b1240732ccd05549cfd63f0213288106acf7d76 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 11 Jul 2013 08:54:15 +0200 Subject: [PATCH] xbps-triggers: misc changes. --- srcpkgs/xbps-triggers/files/gconf-schemas | 2 +- srcpkgs/xbps-triggers/files/gio-modules | 2 +- srcpkgs/xbps-triggers/files/gsettings-schemas | 2 +- srcpkgs/xbps-triggers/files/gtk-icon-cache | 9 +++++++-- srcpkgs/xbps-triggers/files/gtk-immodules | 2 +- srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders | 2 +- srcpkgs/xbps-triggers/files/gtk3-immodules | 2 +- srcpkgs/xbps-triggers/files/kernel-hooks | 2 +- srcpkgs/xbps-triggers/files/mimedb | 2 +- srcpkgs/xbps-triggers/files/pango-modules | 2 +- srcpkgs/xbps-triggers/files/register-shell | 2 +- srcpkgs/xbps-triggers/template | 2 +- 12 files changed, 18 insertions(+), 13 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/gconf-schemas b/srcpkgs/xbps-triggers/files/gconf-schemas index fe8ed7926b2..9dd630df94d 100755 --- a/srcpkgs/xbps-triggers/files/gconf-schemas +++ b/srcpkgs/xbps-triggers/files/gconf-schemas @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # (Un)registers GConf schemas/entries into the schemas database directory. # diff --git a/srcpkgs/xbps-triggers/files/gio-modules b/srcpkgs/xbps-triggers/files/gio-modules index c8656beb27b..532d9ef99a9 100755 --- a/srcpkgs/xbps-triggers/files/gio-modules +++ b/srcpkgs/xbps-triggers/files/gio-modules @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates GLib GIO module cache with gio-querymodules. # diff --git a/srcpkgs/xbps-triggers/files/gsettings-schemas b/srcpkgs/xbps-triggers/files/gsettings-schemas index 414fee7993c..771bc10b29b 100755 --- a/srcpkgs/xbps-triggers/files/gsettings-schemas +++ b/srcpkgs/xbps-triggers/files/gsettings-schemas @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # GLib's GSettings XML schema files. # diff --git a/srcpkgs/xbps-triggers/files/gtk-icon-cache b/srcpkgs/xbps-triggers/files/gtk-icon-cache index 2ceceab81ad..bf425148efc 100755 --- a/srcpkgs/xbps-triggers/files/gtk-icon-cache +++ b/srcpkgs/xbps-triggers/files/gtk-icon-cache @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates GTK+ icon cache file with gtk-update-icon-cache(1). # @@ -33,10 +33,15 @@ run) done break fi + + if [ ! -x ${iconcache_bin} ]; then + exit 0 + fi + case "$TARGET" in post-*) for dir in ${gtk_iconcache_dirs}; do - if [ -d "${dir}" -a -x ${iconcache_bin} ]; then + if [ -d "${dir}" ]; then echo -n "Updating GTK+ icon cache for " echo "${dir}..." ${iconcache_bin} -q -f -t ${dir} diff --git a/srcpkgs/xbps-triggers/files/gtk-immodules b/srcpkgs/xbps-triggers/files/gtk-immodules index 7a2d01bd32e..ae965b9c107 100755 --- a/srcpkgs/xbps-triggers/files/gtk-immodules +++ b/srcpkgs/xbps-triggers/files/gtk-immodules @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates GTK+ IM modules file with gtk-query-immodules-2.0(1). # diff --git a/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders b/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders index 84737972603..8520253d79d 100755 --- a/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders +++ b/srcpkgs/xbps-triggers/files/gtk-pixbuf-loaders @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates's GDK Pixbuf loaders cache with gdk-pixbuf-query-loaders(1). # diff --git a/srcpkgs/xbps-triggers/files/gtk3-immodules b/srcpkgs/xbps-triggers/files/gtk3-immodules index 2022dd1292e..efcb682f923 100755 --- a/srcpkgs/xbps-triggers/files/gtk3-immodules +++ b/srcpkgs/xbps-triggers/files/gtk3-immodules @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates GTK+3 IM modules file with gtk-query-immodules-3.0(1). # diff --git a/srcpkgs/xbps-triggers/files/kernel-hooks b/srcpkgs/xbps-triggers/files/kernel-hooks index 84d07a1fead..7981fe350dc 100755 --- a/srcpkgs/xbps-triggers/files/kernel-hooks +++ b/srcpkgs/xbps-triggers/files/kernel-hooks @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Run scripts found in /etc/kernel.d/ directories. # diff --git a/srcpkgs/xbps-triggers/files/mimedb b/srcpkgs/xbps-triggers/files/mimedb index 91ceec44270..70302b4a450 100755 --- a/srcpkgs/xbps-triggers/files/mimedb +++ b/srcpkgs/xbps-triggers/files/mimedb @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates the shared-mime-info db file with update-mime-database(1). # diff --git a/srcpkgs/xbps-triggers/files/pango-modules b/srcpkgs/xbps-triggers/files/pango-modules index 781a5300b11..608e9716754 100755 --- a/srcpkgs/xbps-triggers/files/pango-modules +++ b/srcpkgs/xbps-triggers/files/pango-modules @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Updates the list of pango modules with pango-querymodules(1). # diff --git a/srcpkgs/xbps-triggers/files/register-shell b/srcpkgs/xbps-triggers/files/register-shell index 0c3cf9414e2..ec0873697ea 100755 --- a/srcpkgs/xbps-triggers/files/register-shell +++ b/srcpkgs/xbps-triggers/files/register-shell @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Registers or unregisters a shell in /etc/shells. # diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 1218cf552bf..8382eb34ec5 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.71 +version=0.72 revision=1 short_desc="The XBPS triggers for Void Linux" maintainer="Juan RP "