Commit cac71a78 authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

wrs_build-all: refuse to build in the wr-switch-sw directory

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 7f1a24a9
......@@ -23,6 +23,11 @@ if [ "$WRS_OUTPUT_DIR" = "$WRS_BASE_DIR" ]; then
wrs_die "Please run $(basename $0) from a different directory"
fi
# Refuse to build within the wr-switch-sw directory
if echo $WRS_BASE_DIR | grep "^$WRS_OUTPUT_DIR/./build\$" > /dev/null; then
wrs_die "Please run $(basename $0) from a different directory"
fi
# Check the tools
WRS_TOOLS="curl svn git gcc g++ ar as m4 libtool gettext md5sum make"
WRS_TOOLS="$WRS_TOOLS awk unzip patch bison flex ncursesw5-config"
......@@ -150,4 +155,3 @@ if $failed_step; then
wrs_die "One or more build steps failed"
fi
wrs_echo "Complete build succeeded, apparently"
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