summaryrefslogtreecommitdiff
path: root/libraries/allegro/doinst.sh
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2011-12-20 00:57:57 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-12-22 00:02:51 -0600
commit30d07f73f98619c05fcd2027c2c9464ad04ed4a0 (patch)
treedfb180878d59755d44fa02873aa1774c39c1a2be /libraries/allegro/doinst.sh
parentf7b2a0085a88a347f0f00f9ff121b4bd766ba800 (diff)
downloadslackbuilds-30d07f73f98619c05fcd2027c2c9464ad04ed4a0.tar.gz
libraries/allegro: Updated for version 4.4.2.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/allegro/doinst.sh')
-rw-r--r--libraries/allegro/doinst.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/allegro/doinst.sh b/libraries/allegro/doinst.sh
new file mode 100644
index 0000000000..35c7a1846d
--- /dev/null
+++ b/libraries/allegro/doinst.sh
@@ -0,0 +1,13 @@
+ 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/allegro.cfg.new