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