summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-07-09 15:25:34 +0000
committerjoeyh <joeyh>2007-07-09 15:25:34 +0000
commitfd9482bab58cfdc0a05731a9d8fd035b4df32767 (patch)
tree08760b9c543a884f753ccdc63daf6c7a3da95be9 /autoscripts
parentc285511ccde07c77d7f9f33bfe88ecc0839a3d7f (diff)
r2013: * Remove DOS line endings from dh_icons scriptlets. Thanks, Daniel Holbach.
Closes: #432321
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-icons14
-rw-r--r--autoscripts/postrm-icons30
2 files changed, 22 insertions, 22 deletions
diff --git a/autoscripts/postinst-icons b/autoscripts/postinst-icons
index 3c018b3..d35f30c 100644
--- a/autoscripts/postinst-icons
+++ b/autoscripts/postinst-icons
@@ -1,7 +1,7 @@
-if which gtk-update-icon-cache >/dev/null 2>&1; then
- for dir in #DIRLIST#; do
- if [ -f "$dir"/icon-theme.cache ]; then
- gtk-update-icon-cache --force --quiet "$dir"
- fi
- done
-fi
+if which gtk-update-icon-cache >/dev/null 2>&1; then
+ for dir in #DIRLIST#; do
+ if [ -f "$dir"/icon-theme.cache ]; then
+ gtk-update-icon-cache --force --quiet "$dir"
+ fi
+ done
+fi
diff --git a/autoscripts/postrm-icons b/autoscripts/postrm-icons
index 3765560..87fd790 100644
--- a/autoscripts/postrm-icons
+++ b/autoscripts/postrm-icons
@@ -1,15 +1,15 @@
-if [ "$1" = "remove" ]; then
- for dir in #DIRLIST#; do
- if [ -d "$dir" ]; then
- if [ -f "$dir"/index.theme ] && \
- [ -f "$dir"/icon-theme.cache ] && \
- which gtk-update-icon-cache >/dev/null 2>&1
- then
- gtk-update-icon-cache --force --quiet "$dir"
- else
- rm -f "$dir"/icon-theme.cache
- rmdir -p --ignore-fail-on-non-empty "$dir"
- fi
- fi
- done
-fi
+if [ "$1" = "remove" ]; then
+ for dir in #DIRLIST#; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir"/index.theme ] && \
+ [ -f "$dir"/icon-theme.cache ] && \
+ which gtk-update-icon-cache >/dev/null 2>&1
+ then
+ gtk-update-icon-cache --force --quiet "$dir"
+ else
+ rm -f "$dir"/icon-theme.cache
+ rmdir -p --ignore-fail-on-non-empty "$dir"
+ fi
+ fi
+ done
+fi