Commit 94496793 authored by Leander Schulten's avatar Leander Schulten

Dependencies: Clone and Build segvcatch and libbacktrace only when they are...

Dependencies: Clone and Build segvcatch and libbacktrace only when they are not there or new commits are available
parent 44fff58f
Pipeline #260966 passed with stage
in 11 minutes and 20 seconds
......@@ -2,9 +2,19 @@
GIT_DIR="libbacktrace.git"
# wenn es schon da ist, einfach löschen
rm -f -r $GIT_DIR
git clone https://github.com/ianlancetaylor/libbacktrace.git $GIT_DIR
# add or update git
if [ ! -d "$GIT_DIR" ]; then # if folder "GIT_DIR" does not exists
git clone https://github.com/ianlancetaylor/libbacktrace.git "$GIT_DIR"
cd "$GIT_DIR"
else
cd "$GIT_DIR"
if [[ $(git pull) = "Already up to date." ]]; then
# we can skip recompiling, because the last build is already up to date
echo "Already up to date."
exit 0
fi
fi
# we are in the "$GIT_DIR" now
cd $GIT_DIR
......
......@@ -2,11 +2,21 @@
mkdir -p lib
mkdir -p include
# wenn es schon da ist, einfach löschen
rm -f -r segvcatch.git
git clone https://github.com/Plaristote/segvcatch.git segvcatch.git
cd segvcatch.git
GIT_DIR=segvcatch.git
# add or update git
if [ ! -d "$GIT_DIR" ]; then # if folder "GIT_DIR" does not exists
git clone https://github.com/Plaristote/segvcatch.git "$GIT_DIR"
cd "$GIT_DIR"
else
cd "$GIT_DIR"
if [[ $(git pull) = "Already up to date." ]]; then
# we can skip recompiling, because the last build is already up to date
echo "Already up to date."
exit 0
fi
fi
# we are in the "$GIT_DIR" now
mkdir release
cd release
......
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