summaryrefslogtreecommitdiff
path: root/libraries/unixODBC/doinst.sh
diff options
context:
space:
mode:
authorHenrique Grolli Bassotto <henrique.grolli@gmail.com>2010-05-14 23:38:56 +0200
committerRobby Workman <rworkman@slackware.com>2010-05-14 23:38:56 +0200
commit2d9b5f44619063704dbe16f57685aa8b43dbd16a (patch)
tree8170548e8e4706c23e6aba8687bfa5ef948ffd7b /libraries/unixODBC/doinst.sh
parent291d4efe828ab7a896f293670ee99cbd9304d40c (diff)
downloadslackbuilds-2d9b5f44619063704dbe16f57685aa8b43dbd16a.tar.gz
libraries/unixODBC: Added - an ODBC library for Unix platforms.
Diffstat (limited to 'libraries/unixODBC/doinst.sh')
-rw-r--r--libraries/unixODBC/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/unixODBC/doinst.sh b/libraries/unixODBC/doinst.sh
new file mode 100644
index 0000000000..04c7f635b8
--- /dev/null
+++ b/libraries/unixODBC/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/odbc.ini.new
+config etc/odbcinst.ini.new
+