aboutsummaryrefslogtreecommitdiff
path: root/audio/gnump3d/doinst.sh
diff options
context:
space:
mode:
authorPierre Cazenave <pwcazenave {at} gmail {dot} com>2010-05-12 23:27:53 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:27:53 +0200
commitd1afb5c3c1615e5bfc3f8305ac513481c0398df8 (patch)
tree6bf02bc7dddb3b1e8b5e2830d4a388e2afaf965a /audio/gnump3d/doinst.sh
parent3de45161220ad8d69963e4df7b61930bc4d7091b (diff)
audio/gnump3d: Added to 12.2 repository
Diffstat (limited to 'audio/gnump3d/doinst.sh')
-rw-r--r--audio/gnump3d/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/gnump3d/doinst.sh b/audio/gnump3d/doinst.sh
new file mode 100644
index 0000000000000..706b58abf56ea
--- /dev/null
+++ b/audio/gnump3d/doinst.sh
@@ -0,0 +1,15 @@
+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/gnump3d/gnump3d.conf.new
+