1
1

Also allow .tar.bz2 files to snarf the version

This commit was SVN r10572.
Этот коммит содержится в:
Jeff Squyres 2006-06-29 19:52:38 +00:00
родитель 7d59a6885b
Коммит a59afbc8af

10
contrib/dist/linux/buildswitcherrpm.sh поставляемый
Просмотреть файл

@ -52,7 +52,15 @@ fi
#
first="`basename $tarball | cut -d- -f2`"
version="`echo $first | sed -e 's/\.tar\.gz//'`"
if test "`echo $first | fgrep .tar.gz`" != ""; then
version="`echo $first | sed -e 's/\.tar\.gz//'`"
elif test "`echo $first | fgrep .tar.bz2`" != ""; then
version="`echo $first | sed -e 's/\.tar\.bz2//'`"
else
echo Unable to determine version number from filename
echo This script only supports .tar.gz and .tar.bz2 filenames
exit 1
fi
unset first
echo "--> Found Open MPI version: $version"