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-mca-params.conf.new
config etc/openmpi-totalview.tcl.new
( cd usr/bin ; rm -rf vtfort )
( cd usr/bin ; ln -sf vtwrapper vtfort )
( cd usr/bin ; rm -rf mpirun )
( cd usr/bin ; ln -sf orterun mpirun )
( cd usr/bin ; rm -rf oshfort )
( cd usr/bin ; ln -sf mpifort oshfort )
( cd usr/bin ; rm -rf mpif77 )
( cd usr/bin ; ln -sf opal_wrapper mpif77 )
( cd usr/bin ; rm -rf mpif77-vt )
( cd usr/bin ; ln -sf mpifort-vt mpif77-vt )
( cd usr/bin ; rm -rf mpicxx )
( cd usr/bin ; ln -sf opal_wrapper mpicxx )
( cd usr/bin ; rm -rf ompi-top )
( cd usr/bin ; ln -sf orte-top ompi-top )
( cd usr/bin ; rm -rf mpicc-vt )
( cd usr/bin ; ln -sf opal_wrapper mpicc-vt )
( cd usr/bin ; rm -rf ompi-server )
( cd usr/bin ; ln -sf orte-server ompi-server )
( cd usr/bin ; rm -rf mpiexec )
( cd usr/bin ; ln -sf orterun mpiexec )
( cd usr/bin ; rm -rf mpic++-vt )
( cd usr/bin ; ln -sf opal_wrapper mpic++-vt )
( cd usr/bin ; rm -rf shmemrun )
( cd usr/bin ; ln -sf mpirun shmemrun )
( cd usr/bin ; rm -rf mpif90 )
( cd usr/bin ; ln -sf opal_wrapper mpif90 )
( cd usr/bin ; rm -rf vtCC )
( cd usr/bin ; ln -sf vtwrapper vtCC )
( cd usr/bin ; rm -rf vtcc )
( cd usr/bin ; ln -sf vtwrapper vtcc )
( cd usr/bin ; rm -rf vtf77 )
( cd usr/bin ; ln -sf vtwrapper vtf77 )
( cd usr/bin ; rm -rf mpif90-vt )
( cd usr/bin ; ln -sf mpifort-vt mpif90-vt )
( cd usr/bin ; rm -rf ompi-ps )
( cd usr/bin ; ln -sf orte-ps ompi-ps )
( cd usr/bin ; rm -rf vtc++ )
( cd usr/bin ; ln -sf vtwrapper vtc++ )
( cd usr/bin ; rm -rf otfdecompress )
( cd usr/bin ; ln -sf otfcompress otfdecompress )
( cd usr/bin ; rm -rf mpiCC-vt )
( cd usr/bin ; ln -sf opal_wrapper mpiCC-vt )
( cd usr/bin ; rm -rf mpicxx-vt )
( cd usr/bin ; ln -sf opal_wrapper mpicxx-vt )
( cd usr/bin ; rm -rf mpiCC )
( cd usr/bin ; ln -sf opal_wrapper mpiCC )
( cd usr/bin ; rm -rf vtf90 )
( cd usr/bin ; ln -sf vtwrapper vtf90 )
( cd usr/bin ; rm -rf shmemfort )
( cd usr/bin ; ln -sf mpifort shmemfort )
( cd usr/bin ; rm -rf oshcc )
( cd usr/bin ; ln -sf mpicc oshcc )
( cd usr/bin ; rm -rf vtfiltergen )
( cd usr/bin ; ln -sf vtfilter vtfiltergen )
( cd usr/bin ; rm -rf mpifort-vt )
( cd usr/bin ; ln -sf opal_wrapper mpifort-vt )
( cd usr/bin ; rm -rf mpicc )
( cd usr/bin ; ln -sf opal_wrapper mpicc )
( cd usr/bin ; rm -rf shmemcc )
( cd usr/bin ; ln -sf mpicc shmemcc )
( cd usr/bin ; rm -rf vtfiltergen-mpi )
( cd usr/bin ; ln -sf vtfilter-mpi vtfiltergen-mpi )
( cd usr/bin ; rm -rf vtcxx )
( cd usr/bin ; ln -sf vtwrapper vtcxx )
( cd usr/bin ; rm -rf ortecc )
( cd usr/bin ; ln -sf opal_wrapper ortecc )
( cd usr/bin ; rm -rf mpifort )
( cd usr/bin ; ln -sf opal_wrapper mpifort )
( cd usr/bin ; rm -rf mpic++ )
( cd usr/bin ; ln -sf opal_wrapper mpic++ )
( cd usr/bin ; rm -rf ompi-clean )
( cd usr/bin ; ln -sf orte-clean ompi-clean )
( cd usr/bin ; rm -rf oshrun )
( cd usr/bin ; ln -sf mpirun oshrun )
( cd usr/share/vampirtrace ; rm -rf vtf90-wrapper-data.txt )
( cd usr/share/vampirtrace ; ln -sf vtfort-wrapper-data.txt vtf90-wrapper-data.txt )
( cd usr/share/vampirtrace ; rm -rf vtcxx-wrapper-data.txt )
( cd usr/share/vampirtrace ; ln -sf vtc++-wrapper-data.txt vtcxx-wrapper-data.txt )
( cd usr/share/vampirtrace ; rm -rf vtf77-wrapper-data.txt )
( cd usr/share/vampirtrace ; ln -sf vtfort-wrapper-data.txt vtf77-wrapper-data.txt )
( cd usr/share/vampirtrace ; rm -rf vtCC-wrapper-data.txt )
( cd usr/share/vampirtrace ; ln -sf vtc++-wrapper-data.txt vtCC-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpif77-vt-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpifort-wrapper-data.txt mpif77-vt-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpiCC-vt-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpic++-vt-wrapper-data.txt mpiCC-vt-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpicxx-vt-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpic++-vt-wrapper-data.txt mpicxx-vt-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpif90-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpifort-wrapper-data.txt mpif90-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpif77-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpifort-wrapper-data.txt mpif77-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpiCC-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpic++-wrapper-data.txt mpiCC-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpif90-vt-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpifort-wrapper-data.txt mpif90-vt-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf oshcc-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf shmemcc-wrapper-data.txt oshcc-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf mpicxx-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf mpic++-wrapper-data.txt mpicxx-wrapper-data.txt )
( cd usr/share/openmpi ; rm -rf oshfort-wrapper-data.txt )
( cd usr/share/openmpi ; ln -sf shmemfort-wrapper-data.txt oshfort-wrapper-data.txt )
( cd usr/man/man1 ; rm -rf mpiCC.1.gz )
( cd usr/man/man1 ; ln -sf mpic++.1.gz mpiCC.1.gz )
( cd usr/lib ; rm -rf libmca_common_sm.so.4 )
( cd usr/lib ; ln -sf libmca_common_sm.so.4.0.4 libmca_common_sm.so.4 )
( cd usr/lib ; rm -rf libmpi_mpifh.so )
( cd usr/lib ; ln -sf libmpi_mpifh.so.12.0.1 libmpi_mpifh.so )
( cd usr/lib ; rm -rf libopen-pal.so )
( cd usr/lib ; ln -sf libopen-pal.so.13.0.3 libopen-pal.so )
( cd usr/lib ; rm -rf libmpi_usempi_ignore_tkr.so )
( cd usr/lib ; ln -sf libmpi_usempi_ignore_tkr.so.6.2.0 libmpi_usempi_ignore_tkr.so )
( cd usr/lib ; rm -rf libmpi_mpifh.so.12 )
( cd usr/lib ; ln -sf libmpi_mpifh.so.12.0.1 libmpi_mpifh.so.12 )
( cd usr/lib ; rm -rf libmpi_cxx.so )
( cd usr/lib ; ln -sf libmpi_cxx.so.1.1.3 libmpi_cxx.so )
( cd usr/lib ; rm -rf libmpi_usempi_ignore_tkr.so.6 )
( cd usr/lib ; ln -sf libmpi_usempi_ignore_tkr.so.6.2.0 libmpi_usempi_ignore_tkr.so.6 )
( cd usr/lib ; rm -rf libmpi_usempif08.so )
( cd usr/lib ; ln -sf libmpi_usempif08.so.11.1.1 libmpi_usempif08.so )
( cd usr/lib ; rm -rf libmca_common_sm.so )
( cd usr/lib ; ln -sf libmca_common_sm.so.4.0.4 libmca_common_sm.so )
( cd usr/lib ; rm -rf libvt-mpi.so )
( cd usr/lib ; ln -sf libvt-mpi.so.0.0.0 libvt-mpi.so )
( cd usr/lib ; rm -rf libvt-mpi-unify.so )
( cd usr/lib ; ln -sf libvt-mpi-unify.so.0.0.0 libvt-mpi-unify.so )
( cd usr/lib ; rm -rf libompitrace.so.0 )
( cd usr/lib ; ln -sf libompitrace.so.0.0.0 libompitrace.so.0 )
( cd usr/lib ; rm -rf libotfaux.so )
( cd usr/lib ; ln -sf libotfaux.so.0.0.0 libotfaux.so )
( cd usr/lib ; rm -rf libopen-trace-format.so.1 )
( cd usr/lib ; ln -sf libopen-trace-format.so.1.0.0 libopen-trace-format.so.1 )
( cd usr/lib ; rm -rf libmpi_cxx.so.1 )
( cd usr/lib ; ln -sf libmpi_cxx.so.1.1.3 libmpi_cxx.so.1 )
( cd usr/lib ; rm -rf libotfaux.so.0 )
( cd usr/lib ; ln -sf libotfaux.so.0.0.0 libotfaux.so.0 )
( cd usr/lib ; rm -rf libmpi.so )
( cd usr/lib ; ln -sf libmpi.so.12.0.4 libmpi.so )
( cd usr/lib ; rm -rf libopen-rte.so.12 )
( cd usr/lib ; ln -sf libopen-rte.so.12.0.3 libopen-rte.so.12 )
( cd usr/lib ; rm -rf libopen-rte.so )
( cd usr/lib ; ln -sf libopen-rte.so.12.0.3 libopen-rte.so )
( cd usr/lib ; rm -rf libvt-hyb.so.0 )
( cd usr/lib ; ln -sf libvt-hyb.so.0.0.0 libvt-hyb.so.0 )
( cd usr/lib ; rm -rf libvt-mpi-unify.so.0 )
( cd usr/lib ; ln -sf libvt-mpi-unify.so.0.0.0 libvt-mpi-unify.so.0 )
( cd usr/lib ; rm -rf libopen-pal.so.13 )
( cd usr/lib ; ln -sf libopen-pal.so.13.0.3 libopen-pal.so.13 )
( cd usr/lib ; rm -rf libvt.so.0 )
( cd usr/lib ; ln -sf libvt.so.0.0.0 libvt.so.0 )
( cd usr/lib ; rm -rf liboshmem.so )
( cd usr/lib ; ln -sf liboshmem.so.8.1.2 liboshmem.so )
( cd usr/lib ; rm -rf libmpi.so.12 )
( cd usr/lib ; ln -sf libmpi.so.12.0.4 libmpi.so.12 )
( cd usr/lib/pkgconfig ; rm -rf ompi-f90.pc )
( cd usr/lib/pkgconfig ; ln -sf ompi-fort.pc ompi-f90.pc )
( cd usr/lib/pkgconfig ; rm -rf ompi-f77.pc )
( cd usr/lib/pkgconfig ; ln -sf ompi-fort.pc ompi-f77.pc )
( cd usr/lib ; rm -rf libmpi_usempif08.so.11 )
( cd usr/lib ; ln -sf libmpi_usempif08.so.11.1.1 libmpi_usempif08.so.11 )
( cd usr/lib ; rm -rf libopen-trace-format.so )
( cd usr/lib ; ln -sf libopen-trace-format.so.1.0.0 libopen-trace-format.so )
( cd usr/lib ; rm -rf libvt-mt.so )
( cd usr/lib ; ln -sf libvt-mt.so.0.0.0 libvt-mt.so )
( cd usr/lib ; rm -rf libvt.so )
( cd usr/lib ; ln -sf libvt.so.0.0.0 libvt.so )
( cd usr/lib ; rm -rf libvt-mpi.so.0 )
( cd usr/lib ; ln -sf libvt-mpi.so.0.0.0 libvt-mpi.so.0 )
( cd usr/lib ; rm -rf libvt-hyb.so )
( cd usr/lib ; ln -sf libvt-hyb.so.0.0.0 libvt-hyb.so )
( cd usr/lib ; rm -rf libompitrace.so )
( cd usr/lib ; ln -sf libompitrace.so.0.0.0 libompitrace.so )
( cd usr/lib ; rm -rf libvt-mt.so.0 )
( cd usr/lib ; ln -sf libvt-mt.so.0.0.0 libvt-mt.so.0 )
( cd usr/lib ; rm -rf liboshmem.so.8 )
( cd usr/lib ; ln -sf liboshmem.so.8.1.2 liboshmem.so.8 )
