summaryrefslogtreecommitdiffstats
path: root/system/hercules/doinst.sh
diff options
context:
space:
mode:
author Niels Horn <niels.horn@gmail.com>2010-05-13 01:00:50 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-13 01:00:50 +0200
commit9de55a8d377188eb3c2d5644f84cbc0177c66a63 (patch)
tree09b1831227a845e5e3aab34e15e610a9ec22367e /system/hercules/doinst.sh
parent8e11779e5235ee6f96600dc90b701e876c7efd12 (diff)
downloadslackbuilds-9de55a8d377188eb3c2d5644f84cbc0177c66a63.tar.gz
slackbuilds-9de55a8d377188eb3c2d5644f84cbc0177c66a63.tar.xz
system/hercules: Added to 13.0 repository
Diffstat (limited to 'system/hercules/doinst.sh')
-rw-r--r--system/hercules/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/system/hercules/doinst.sh b/system/hercules/doinst.sh
new file mode 100644
index 0000000000..aa581e5aa4
--- /dev/null
+++ b/system/hercules/doinst.sh
@@ -0,0 +1,19 @@
+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/hercules.cnf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+