#!/bin/sh # # Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana # University Research and Technology # Corporation. All rights reserved. # Copyright (c) 2004-2005 The University of Tennessee and The University # of Tennessee Research Foundation. All rights # reserved. # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # # # Version of auto tools that we want # AM_TARGET_VERSION=1.9.6 AC_TARGET_VERSION=2.59 LT_TARGET_VERSION=1.5.20 # # First things first -- check that the auto versions that we have are # the ones that we want. # check_gnu_version() { prog="$1" target="$2" ver="`$prog --version | head -n 1 | cut -d\ -f 4`" if test "$ver" != "$target"; then cat < $file.new cp -f $file.new $file rm $file.new done if test "$1" = "-nogreek" -o "$1" = "--nogreek"; then echo "*** REMOVING ALL GREEK FROM VERSION NUMBERS!!" for file in $version_files; do echo " - $file" sed -e 's/^greek=.*/greek=/' $file > $file.new cp -f $file.new $file rm $file.new done fi # # Autogen # echo "*** Running autogen.sh..." ./autogen.sh 2>&1 | tee auto.out if test ! "$?" = "0"; then echo "Autogen failed. Aborting" exit 1 fi # # Configure # echo "*** Running configure..." ./configure --enable-dist 2>&1 | tee config.out if test ! "$?" = "0"; then echo "Configure failed. Aborting" exit 1 fi # # Sanity check # echo "*** Sanity check..." file="ompi/mca/btl/gm/btl_gm_component.c" if test ! -f "$file"; then echo "Configure failed - no file: $file" exit 1 fi # # Remove autogen.sh # echo "*** Removing autogen.sh from the tarball before make dist" rm -rf autogen.sh # # make tarball # echo "*** Running make distcheck..." save_LD=$LD_LIBRARY_PATH LD_LIBRARY_PATH= make distcheck 2>&1 | tee dist.out if test ! "$?" = "0"; then echo "Make dist failed. Aborting" exit 1 fi LD_LIBRARY_PATH=$save_LD # # move # echo "*** Moving tarballs..." mv openmpi-* .. echo "*** All done" # # bring back autogen.sh # svn up autogen.sh