From 0de30cd3768ac73cd54ce529fa23ca6835bee328 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Oct 2016 11:58:42 +0200 Subject: [PATCH] remove discontinued submodules if they are checked out --- s/build | 1 + s/preview | 1 + 2 files changed, 2 insertions(+) diff --git a/s/build b/s/build index b59804626..820e330f9 100755 --- a/s/build +++ b/s/build @@ -33,6 +33,7 @@ if [ ! -d $ROOT/$BUILD ]; then exit fi +rm -rf crypto tolua git submodule update echo "build eressea" diff --git a/s/preview b/s/preview index 79411aea6..86a4f8918 100755 --- a/s/preview +++ b/s/preview @@ -22,6 +22,7 @@ exit $2 # otherwise function build() { assert_dir $SOURCE cd $SOURCE +rm -rf crypto tolua git fetch || abort "failed to update source. do you have local changes?" [ -z $1 ] || git checkout $1 git pull