diff options
author | Pierre Cazenave <pwcazenave {at} gmail {dot} com> | 2010-05-12 23:27:53 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:27:53 +0200 |
commit | d1afb5c3c1615e5bfc3f8305ac513481c0398df8 (patch) | |
tree | 6bf02bc7dddb3b1e8b5e2830d4a388e2afaf965a /audio/gnump3d/doinst.sh | |
parent | 3de45161220ad8d69963e4df7b61930bc4d7091b (diff) | |
download | slackbuilds-d1afb5c3c1615e5bfc3f8305ac513481c0398df8.tar.gz |
audio/gnump3d: Added to 12.2 repository
Diffstat (limited to 'audio/gnump3d/doinst.sh')
-rw-r--r-- | audio/gnump3d/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/gnump3d/doinst.sh b/audio/gnump3d/doinst.sh new file mode 100644 index 0000000000..706b58abf5 --- /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 + |