bootstrap.sh: windows (mingw) fixes
authorEvan Martin <martine@danga.com>
Fri, 2 Dec 2011 05:34:34 +0000 (21:34 -0800)
committerEvan Martin <martine@danga.com>
Fri, 2 Dec 2011 05:35:55 +0000 (21:35 -0800)
- Don't build browse.cc in bootstrap.sh.
- Explicitly call out to Python to run configure.py.
- Run ninja-bootstrap with no arguments to build the default target,
which is "ninja.exe" on Windows.

bootstrap.sh

index af9cd08..7c62af3 100755 (executable)
@@ -34,7 +34,7 @@ mkdir -p build
 
 case "$SYSTEMNAME" in
   MINGW32*)
-    srcs=$(ls src/*.cc | grep -v test | grep -v subprocess.cc)
+    srcs=$(ls src/*.cc | grep -v test | egrep -v 'browse.cc|subprocess.cc')
     ;;
   *)
     srcs=$(ls src/*.cc | grep -v test | grep -v subprocess-win32.cc)
@@ -44,8 +44,8 @@ esac
 ${CXX:-g++} -Wno-deprecated ${CFLAGS} ${LDFLAGS} -o ninja.bootstrap $srcs
 
 echo "Building ninja using itself..."
-./configure.py
-./ninja.bootstrap ninja
+python ./configure.py
+./ninja.bootstrap
 rm ninja.bootstrap
 
 echo "Done!"