Skip to content

Commit

Permalink
Update launchBuildMain.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Apr 5, 2021
1 parent e63b6e9 commit 6140190
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/jenkins/launchBuildMain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,14 @@ if [ "${GIT_URL_IS_NATRON:-}" = "1" ]; then
cd "$CWD"
# Update build scripts, except launchBuildMain.sh, which is being executed
# That way, the SDK doesn't need to be updated when eg build-plugins.sh or buil-Linux-installer.sh is updated
if [ "$TMP_PATH/Natron/tools/jenkins/launchBuildMain.sh" -nt "launchBuildMain.sh" ] && ! cmp "$TMP_PATH/Natron/tools/jenkins/launchBuildMain.sh" -"launchBuildMain.sh" >/dev/null 2>&1 && [ -z "${LAUNCHBUILDMAIN_UPDATED+x}" ]; then
if [ "$TMP_PATH/Natron/tools/jenkins/launchBuildMain.sh" -nt "launchBuildMain.sh" ] && ! cmp "$TMP_PATH/Natron/tools/jenkins/launchBuildMain.sh" "launchBuildMain.sh" >/dev/null 2>&1 && [ -z "${LAUNCHBUILDMAIN_UPDATED+x}" ]; then
echo "Warning: launchBuildMain.sh has changed since the last SDK build. SDK may need to be rebuilt. Restarting after a 5s pause."
sleep 5
[ -f ./launchBuildMain.sh.orig ] && rm -f ./launchBuildMain.sh.orig
mv ./launchBuildMain.sh ./launchBuildMain.sh.orig
cp "$TMP_PATH/Natron/tools/jenkins/launchBuildMain.sh" ./launchBuildMain.sh
if [ -f ./launchBuildMain.sh.orig ]; then
rm -f ./launchBuildMain.sh.orig || true
fi
mv ./launchBuildMain.sh ./launchBuildMain.sh.orig || true
cp "$TMP_PATH/Natron/tools/jenkins/launchBuildMain.sh" ./launchBuildMain.sh || true
exec env LAUNCHBUILDMAIN_UPDATED=1 ./launchBuildMain.sh "$*"
fi
if [ -z "${NOUPDATE:+x}" ]; then
Expand Down

0 comments on commit 6140190

Please sign in to comment.