summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-02-07 19:15:29 (GMT)
committerEvan Martin <martine@danga.com>2011-02-07 19:15:29 (GMT)
commit6c4deb6f192485ac27863cdb0af2b845a5314cd1 (patch)
treeab22dc5710024968a677c1b2eafe199847e7fe8c /bootstrap.sh
parent21a8e95e954fa8b0f77d5e4eaae7e81b5b178d2a (diff)
parentd52238f212c8e5ec914270a599d8e690e6af9265 (diff)
downloadNinja-6c4deb6f192485ac27863cdb0af2b845a5314cd1.zip
Ninja-6c4deb6f192485ac27863cdb0af2b845a5314cd1.tar.gz
Ninja-6c4deb6f192485ac27863cdb0af2b845a5314cd1.tar.bz2
Merge branch 'master' of https://github.com/martine/ninja
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh23
1 files changed, 20 insertions, 3 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 637e0d0..5ac9141 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,5 +1,19 @@
#!/bin/bash
+# Copyright 2011 Google Inc. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -e
cat >config.ninja <<EOT
@@ -8,12 +22,15 @@ conf_cflags = -O2
conf_ldflags = -s
# When developing:
# conf_cflags = -g -Wall
-# conf_ldlags = -g -Wall
+# conf_ldlags =
EOT
+
+echo "Building ninja manually..."
srcs=$(ls src/*.cc | grep -v test)
-echo "Building stage 1..."
g++ -Wno-deprecated -o ninja.bootstrap $srcs
-echo "Building final result..."
+
+echo "Building ninja using itself..."
./ninja.bootstrap ninja
rm ninja.bootstrap
+
echo "Done!"