summaryrefslogtreecommitdiff
path: root/development/openmpi/doinst.sh
diff options
context:
space:
mode:
authorAleksandar Samardzic <asamardzic@matf.bg.ac.yu>2010-05-11 20:00:28 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:00:28 +0200
commit9ec710502981d083c16a756b8b6f575adc0f5ab4 (patch)
tree8896b03886d9943a855d772a40cac664cf42434a /development/openmpi/doinst.sh
parent02a4d54beecdba9c3e00c73c1bd084b4bb430317 (diff)
downloadslackbuilds-9ec710502981d083c16a756b8b6f575adc0f5ab4.tar.gz
development/openmpi: Added to 12.0 repository
Diffstat (limited to 'development/openmpi/doinst.sh')
-rw-r--r--development/openmpi/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/development/openmpi/doinst.sh b/development/openmpi/doinst.sh
new file mode 100644
index 0000000000..7f75f638c4
--- /dev/null
+++ b/development/openmpi/doinst.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+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/openmpi-totalview.tcl.new
+config etc/openmpi-mca-params.conf.new
+config etc/openmpi-default-hostfile.new