mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
Escape (...) in configure script.
spotted by Collibri svn path=/branches/cmake-bringup/; revision=51815
This commit is contained in:
parent
fdcd4cd64c
commit
c5f4d06d4b
1 changed files with 37 additions and 0 deletions
37
configure.sh
Executable file
37
configure.sh
Executable file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if [ "x$ROS_ARCH" == "x" ]
|
||||||
|
then
|
||||||
|
echo Could not detect RosBE.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
BUILD_ENVIRONMENT=MinGW
|
||||||
|
ARCH=$ROS_ARCH
|
||||||
|
REACTOS_SOURCE_DIR=$(cd `dirname $0` && pwd)
|
||||||
|
REACTOS_OUTPUT_PATH=output-$BUILD_ENVIRONMENT-$ARCH
|
||||||
|
|
||||||
|
if [ "$REACTOS_SOURCE_DIR" == "$PWD" ]
|
||||||
|
then
|
||||||
|
echo Creating directories in $REACTOS_OUTPUT_PATH
|
||||||
|
mkdir -p $REACTOS_OUTPUT_PATH
|
||||||
|
cd "$REACTOS_OUTPUT_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p host-tools
|
||||||
|
mkdir -p reactos
|
||||||
|
|
||||||
|
echo Preparing host tools...
|
||||||
|
cd host-tools
|
||||||
|
if [ -f CMakeCache.txt ]
|
||||||
|
then
|
||||||
|
rm -f CMakeCache.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
REACTOS_BUILD_TOOLS_DIR="$PWD"
|
||||||
|
cmake -G "Unix Makefiles" -DARCH=$ARCH "$REACTOS_SOURCE_DIR"
|
||||||
|
|
||||||
|
cd ../reactos
|
||||||
|
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake -DARCH=$ARCH -DREACTOS_BUILD_TOOLS_DIR="$REACTOS_BUILD_TOOLS_DIR" "$REACTOS_SOURCE_DIR"
|
||||||
|
|
||||||
|
echo Configure script complete! Enter directories and execute appropriate build commands\(ex: make, makex, etc...\).
|
||||||
|
|
Loading…
Reference in a new issue