Commit f9c418c6 authored by Monty's avatar Monty

Fixed the BUILD scripts to work outside of a git repository

parent 5b275b41
...@@ -48,11 +48,15 @@ commands="$commands ...@@ -48,11 +48,15 @@ commands="$commands
path=`dirname $0` path=`dirname $0`
. \"$path/autorun.sh\"" . \"$path/autorun.sh\""
if [ -z "$just_clean" ] if [ -z "$just_clean"]
then then
commands="$commands if test -d .git
git submodule update then
CC=\"$CC\" CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" $configure" commands="$commands
git submodule update"
fi
commands="$commands
CC=\"$CC\" CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" $configure"
fi fi
if [ -z "$just_configure" -a -z "$just_clean" ] if [ -z "$just_configure" -a -z "$just_clean" ]
......
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