diff options
Diffstat (limited to 'source/x/xterm/doinst.sh')
-rw-r--r-- | source/x/xterm/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/x/xterm/doinst.sh b/source/x/xterm/doinst.sh index 1f8ff67d..7f08ab7d 100644 --- a/source/x/xterm/doinst.sh +++ b/source/x/xterm/doinst.sh @@ -1,3 +1,17 @@ +#!/bin/sh +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... +} +config etc/X11/app-defaults/XTerm.new + if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi |