diff options
author | Philip van der Hoeven <philip@vd-hoeven.nl> | 2016-11-23 20:32:26 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-11-26 11:47:24 +0700 |
commit | 43d5330383178fd340dcda8dae190d5134d04cc4 (patch) | |
tree | 700aaf8304d09237a7df334484f15db1c2de8f79 /system/terminix/doinst.sh | |
parent | 8085ca337ba8965167ca0b6bfe101e0e6d8d0bae (diff) | |
download | slackbuilds-43d5330383178fd340dcda8dae190d5134d04cc4.tar.gz |
system/terminix: Added (Tiling terminal emulator).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/terminix/doinst.sh')
-rw-r--r-- | system/terminix/doinst.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/system/terminix/doinst.sh b/system/terminix/doinst.sh new file mode 100644 index 0000000000..50a87a440d --- /dev/null +++ b/system/terminix/doinst.sh @@ -0,0 +1,39 @@ +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 +} + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/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 + +if [ -e usr/share/glib-2.0/schemas ]; then + if [ -x /usr/bin/glib-compile-schemas ]; then + /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 + fi +fi |