summaryrefslogtreecommitdiffstats
path: root/system/openmpi/doinst.sh
diff options
context:
space:
mode:
author Erik Hanson2010-07-07 09:49:06 +0200
committer Robby Workman2010-07-08 07:13:25 +0200
commit63b183341939c4aff7abd001d5760f22c54cf113 (patch)
tree359c42642fb6bab6a4b09e4c3b77f52740beb2b3 /system/openmpi/doinst.sh
parent3e282ff149f8a4302ab09335f97d31977ccdb210 (diff)
downloadslackbuilds-63b183341939c4aff7abd001d5760f22c54cf113.tar.gz
system/openmpi: Added (an open source MPI-2 implementation)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/openmpi/doinst.sh')
-rw-r--r--system/openmpi/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/openmpi/doinst.sh b/system/openmpi/doinst.sh
new file mode 100644
index 0000000000..11d0b65549
--- /dev/null
+++ b/system/openmpi/doinst.sh
@@ -0,0 +1,16 @@
+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-default-hostfile.new
+config etc/openmpi-totalview.tcl.new
+config etc/openmpi-mca-params.conf.new