summaryrefslogtreecommitdiff
path: root/academic/xephem/doinst.sh
diff options
context:
space:
mode:
authorDario Nicodemi <dario.sbo@gmail.com>2010-04-08 22:12:25 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-15 10:25:33 +0200
commite33c641b630ab8d7150403793685f2eccee0ce60 (patch)
tree89c3bf166ec8de40c51c2392f2814bf038b33f1f /academic/xephem/doinst.sh
parenta03ccc1bbcd0184feb71aaa606a34deee04abadf (diff)
downloadslackbuilds-e33c641b630ab8d7150403793685f2eccee0ce60.tar.gz
academic/xephem: Added (an astronomy program)
Diffstat (limited to 'academic/xephem/doinst.sh')
-rw-r--r--academic/xephem/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/academic/xephem/doinst.sh b/academic/xephem/doinst.sh
new file mode 100644
index 0000000000..995b974819
--- /dev/null
+++ b/academic/xephem/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/X11/app-defaults/XEphem.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+