Commit 002ed028 authored by Stefan's avatar Stefan
Browse files

do not use tarball if source dir exists for parRSB + gslib

parent 221fa825
......@@ -4,7 +4,9 @@ set -e
VER=1.0.7
if [ "$1" == "clean" ]; then
rm -rf gslib lib include 2>/dev/null
rm -rf lib include 2>/dev/null
find . -name '*.o' -exec rm {} +
find . -name '*.a' -exec rm {} +
exit 0
fi
......@@ -12,13 +14,12 @@ if [ -f ./lib/libgs.a ]; then
exit 0
fi
if [ ! -f v$VER.tar.gz ]; then
if [ ! -d ./gslib ]; then
wget --no-check-certificate -O v$VER.tar.gz http://github.com/gslib/gslib/archive/v$VER.tar.gz
mkdir gslib
tar -zxvf v$VER.tar.gz -C ./gslib --strip-components=1
fi
rm -rf gslib 2>/dev/null
mkdir gslib
tar -zxvf v$VER.tar.gz -C ./gslib --strip-components=1
cd gslib
set -x
make -j4 $GSLIB_OPT
......
......@@ -12,16 +12,12 @@ if [ -f ./lib/libparRSB.a ]; then
exit 0
fi
if [ ! -f v$VER.tar.gz ]; then
if [ ! -d ./parRSB ]; then
wget --no-check-certificate -O v$VER.tar.gz https://github.com/Nek5000/parRSB/archive/v$VER.tar.gz
mkdir parRSB
tar -zxvf v$VER.tar.gz -C ./parRSB --strip-components=1
fi
rm -rf parRSB 2>/dev/null
mkdir parRSB
tar -zxvf v$VER.tar.gz -C ./parRSB --strip-components=1
#git clone https://github.com/Nek5000/parRSB.git parRSB
cd parRSB
set -x
make -j4 $PARRSB_OPT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment