summaryrefslogtreecommitdiff
path: root/desktop/bashrun2/doinst.sh
diff options
context:
space:
mode:
authorMikko Värri <vmj@linuxbox.fi>2010-12-30 19:07:05 -0200
committerRobby Workman <rworkman@slackbuilds.org>2010-12-31 18:59:54 -0600
commit753e258778b6aef77d5debb63f3956a7704b3880 (patch)
treef312f70879bc1b8ece5728d6dc871afc437bd2bc /desktop/bashrun2/doinst.sh
parent74ef8f6797396a28dc6ae7ffecfc647c11a5736e (diff)
downloadslackbuilds-753e258778b6aef77d5debb63f3956a7704b3880.tar.gz
desktop/bashrun2: Added (interactive bash application launcher)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'desktop/bashrun2/doinst.sh')
-rw-r--r--desktop/bashrun2/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/bashrun2/doinst.sh b/desktop/bashrun2/doinst.sh
new file mode 100644
index 0000000000..ac45714e3d
--- /dev/null
+++ b/desktop/bashrun2/doinst.sh
@@ -0,0 +1,14 @@
+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/xdg/bashrun2/bashrun2.rc.new