[CONFIGURE.SH]

Kill bashisms introduced by r59197 and replace them by sh code.

This is mainly to preserve maximum portability of the code, and to
fix configure.sh on platforms where /bin/sh doesn't point to /bin/sh ;-).

svn path=/trunk/; revision=59457
This commit is contained in:
Pierre Schweitzer 2013-07-12 10:10:23 +00:00
parent b219de051f
commit c7f7b737c8

View file

@ -16,19 +16,19 @@ exit 1
} }
CMAKE_GENERATOR="Ninja" CMAKE_GENERATOR="Ninja"
for (( i=1; i<=$#; i++ )); do while [ $# -gt 0 ]; do
case ${!i} in case $1 in
-D) -D)
((i++)) shift
if [[ "x${!i}" == x?*=* ]] ; then if echo "x$1" | grep 'x?*=*' > /dev/null; then
ROS_CMAKEOPTS+=" -D ${!i}" ROS_CMAKEOPTS+=" -D $1"
else else
usage usage
fi fi
;; ;;
-D?*=*) -D?*=*|-D?*)
ROS_CMAKEOPTS+=" ${!i}" ROS_CMAKEOPTS+=" $1"
;; ;;
makefiles|Makefiles) makefiles|Makefiles)
CMAKE_GENERATOR="Unix Makefiles" CMAKE_GENERATOR="Unix Makefiles"
@ -36,6 +36,8 @@ for (( i=1; i<=$#; i++ )); do
*) *)
usage usage
esac esac
shift
done done
if [ "$REACTOS_SOURCE_DIR" = "$PWD" ]; then if [ "$REACTOS_SOURCE_DIR" = "$PWD" ]; then