mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[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:
parent
b219de051f
commit
c7f7b737c8
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue