aboutsummaryrefslogtreecommitdiff
path: root/audio/chuck/doinst.sh
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-10-28 17:19:11 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-10-29 20:12:25 -0500
commit8181dfcc4f3f4be9cfdf37d1ea2fe4de17d4d0b5 (patch)
tree1becdb470b92495b9bce7dd166c428bf0e01f062 /audio/chuck/doinst.sh
parent1e726bf44cd7809cd9e43761a86fa837e796ef1c (diff)
audio/chuck: Use the same name for script and package.
Cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/chuck/doinst.sh')
-rw-r--r--audio/chuck/doinst.sh50
1 files changed, 0 insertions, 50 deletions
diff --git a/audio/chuck/doinst.sh b/audio/chuck/doinst.sh
deleted file mode 100644
index cb44d46a56d6a..0000000000000
--- a/audio/chuck/doinst.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-preserve_perms() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- if [ -e $OLD ]; then
- cp -a $OLD ${NEW}.incoming
- cat $NEW > ${NEW}.incoming
- mv ${NEW}.incoming $NEW
- fi
- config $NEW
-}
-
-schema_install() {
- SCHEMA="$1"
- GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
- chroot . gconftool-2 --makefile-install-rule \
- /etc/gconf/schemas/$SCHEMA \
- 1>/dev/null
-}
-
-schema_install blah.schemas
-preserve_perms etc/rc.d/rc.INIT.new
-config etc/configfile.new
-
-if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
-fi
-
-if [ -x /usr/bin/update-mime-database ]; then
- /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
-fi
-
-if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
- if [ -x /usr/bin/gtk-update-icon-cache ]; then
- /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
- fi
-fi
-