Skip to content

Commit

Permalink
Make use of elif instead of nested conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
rpspringuel committed May 13, 2016
1 parent 62508bc commit ac74d2d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,10 @@ then
MINGWSTR=mingw32
if [ -d /usr/mingw32 ]; then
MINGWSTR=mingw32
else
if [ -d /usr/i386-mingw32msvc ]; then
elif [ -d /usr/i386-mingw32msvc ]; then
MINGWSTR=i386-mingw32msvc
else
if [ -d /usr/i586-mingw32msvc ]; then
elif [ -d /usr/i586-mingw32msvc ]; then
MINGWSTR=i586-mingw32msvc
fi
fi
fi
OLDPATH=$PATH
PATH=/usr/$MINGWSTR/bin:$PATH
Expand All @@ -87,8 +83,7 @@ then
--host=$MINGWSTR \
--build=$MINGWBUILD \
--prefix=/usr/$MINGWSTR"
else
if [ "$MACCROSS" = "TRUE" ]
elif [ "$MACCROSS" = "TRUE" ]
then
# make sure that architecture parameter is valid
case $ARCH in
Expand All @@ -98,7 +93,6 @@ then
ARCHFLAGS="$ARCHFLAGS"
CFLAGS="-arch $ARCH -g -O2 $CFLAGS"
LDFLAGS="-arch $ARCH $LDFLAGS"
fi
fi


Expand Down

0 comments on commit ac74d2d

Please sign in to comment.