aboutsummaryrefslogtreecommitdiff
path: root/academic/solfege/doinst.sh
diff options
context:
space:
mode:
authorPhillip Warner <pc_warner@yahoo.com>2010-05-11 22:53:06 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:53:06 +0200
commit90359937f0bcf8459182c81f7d90a5bc992c5482 (patch)
treedc3f344abe1df61f9dc678c5da9101f630bdc1fa /academic/solfege/doinst.sh
parent61e97967e7a5435c5db561947f2896dc37c3702d (diff)
academic/solfege: Added to 12.1 repository
Diffstat (limited to 'academic/solfege/doinst.sh')
-rw-r--r--academic/solfege/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/academic/solfege/doinst.sh b/academic/solfege/doinst.sh
new file mode 100644
index 0000000000000..e2c5000afb7cb
--- /dev/null
+++ b/academic/solfege/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/solfege.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
+fi