Skip to content

Commit

Permalink
do not use tarball if source dir exists for parRSB + gslib
Browse files Browse the repository at this point in the history
  • Loading branch information
stgeke committed Feb 10, 2021
1 parent 221fa82 commit 002ed02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 6 additions & 5 deletions 3rd_party/gslib/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ 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

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
Expand Down
10 changes: 3 additions & 7 deletions 3rd_party/parRSB/install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 002ed02

Please sign in to comment.