r12007 - /desktop/experimental/gtk+2.0/debian/update-icon-caches
lool at users.alioth.debian.org
lool at users.alioth.debian.org
Wed Jul 18 10:07:58 UTC 2007
Author: lool
Date: Wed Jul 18 10:07:58 2007
New Revision: 12007
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=12007
Log:
* Merge whitespace fixes...
Modified:
desktop/experimental/gtk+2.0/debian/update-icon-caches
Modified: desktop/experimental/gtk+2.0/debian/update-icon-caches
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B2.0/debian/update-icon-caches?rev=12007&op=diff
==============================================================================
--- desktop/experimental/gtk+2.0/debian/update-icon-caches (original)
+++ desktop/experimental/gtk+2.0/debian/update-icon-caches Wed Jul 18 10:07:58 2007
@@ -1,11 +1,12 @@
-#! /bin/sh
+#!/bin/sh
+
set -e
case "$1" in
""|-h|--help)
echo "Usage: $0 directory [ ... ]"
exit 1
- ;;
+ ;;
esac
for dir in "$@"; do
@@ -15,12 +16,13 @@
fi
if [ -f "$dir"/index.theme ]; then
if [ -f "$dir"/icon-theme.cache ]; then
- # The cache already exists, regenerate it
- gtk-update-icon-cache --force --quiet "$dir"
- fi
+ # The cache already exists, regenerate it
+ gtk-update-icon-cache --force --quiet "$dir"
+ fi
else
# No more index.theme, remove the cache if it exists
- rm -f "$dir"/icon-theme.cache
- rmdir -p --ignore-fail-on-non-empty "$dir"
+ rm -f "$dir"/icon-theme.cache
+ rmdir -p --ignore-fail-on-non-empty "$dir"
fi
done
+
More information about the pkg-gnome-commits
mailing list