diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-20 05:14:34 -0400 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-25 13:26:46 +0000 |
commit | c5098156622cb904955a37eafae5d16b73c1aa09 (patch) | |
tree | 744a695c8215b7118020904fc5dd55046829606e | |
parent | d916cd9bbd724c7c9fce2c148dc0a820eeb09ed2 (diff) |
libraries/libinstpatch: Remove unused doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | libraries/libinstpatch/doinst.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/libraries/libinstpatch/doinst.sh b/libraries/libinstpatch/doinst.sh deleted file mode 100644 index fa5f226d1463b..0000000000000 --- a/libraries/libinstpatch/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 -f usr/share/icons/hicolor >/dev/null 2>&1 - fi -fi - |