r11944 - /desktop/unstable/gtk+2.0/debian/update-icon-caches
lool at users.alioth.debian.org
lool at users.alioth.debian.org
Sat Jul 14 12:12:41 UTC 2007
Author: lool
Date: Sat Jul 14 12:12:40 2007
New Revision: 11944
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=11944
Log:
* Whitespace cleanups.
Modified:
desktop/unstable/gtk+2.0/debian/update-icon-caches
Modified: desktop/unstable/gtk+2.0/debian/update-icon-caches
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B2.0/debian/update-icon-caches?rev=11944&op=diff
==============================================================================
--- desktop/unstable/gtk+2.0/debian/update-icon-caches (original)
+++ desktop/unstable/gtk+2.0/debian/update-icon-caches Sat Jul 14 12:12:40 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