diff options
author | Petar Petrov <ppetrov@paju.oulu.fi> | 2011-09-03 09:17:14 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-03 09:17:14 -0300 |
commit | d4353e6dec3841394462e0c35de336b52e63d3b5 (patch) | |
tree | 447bde63333a84e0feb38f9d466c49b37da3c02c /academic/arka/doinst.sh | |
parent | 5d75fedb2ed7fa7929c48505779832561ab915fc (diff) | |
download | slackbuilds-d4353e6dec3841394462e0c35de336b52e63d3b5.tar.gz |
academic/arka: Added (A GUI for genpak)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/arka/doinst.sh')
-rw-r--r-- | academic/arka/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/academic/arka/doinst.sh b/academic/arka/doinst.sh new file mode 100644 index 0000000000..72fe083ba0 --- /dev/null +++ b/academic/arka/doinst.sh @@ -0,0 +1,18 @@ +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/arkarc.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi |