diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2012-09-29 16:01:05 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-29 17:17:42 -0500 |
commit | ec8897b13f7e9ef53c62d6e18fb1715baeef0aa1 (patch) | |
tree | f535e54db45051143f551bd522ff45e2507f35bf /development/jeex/doinst.sh | |
parent | 3f6f553556dc1be8c732a41dad438f5d89dfdbac (diff) | |
download | slackbuilds-ec8897b13f7e9ef53c62d6e18fb1715baeef0aa1.tar.gz |
development/jeex: Fixed (Don't clobber config, handle desktop file)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/jeex/doinst.sh')
-rw-r--r-- | development/jeex/doinst.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/development/jeex/doinst.sh b/development/jeex/doinst.sh new file mode 100644 index 0000000000..d8aa7f214f --- /dev/null +++ b/development/jeex/doinst.sh @@ -0,0 +1,20 @@ + 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/jeex/magic.binary.new +config etc/jeex/jeex.rc.new +config etc/jeex/magic.text.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi |