• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3SRC=$(cd $(dirname $0) && pwd)
4OUT=/tmp/blueprint.$$
5
6rm -rf ${OUT}
7mkdir ${OUT}
8
9(
10  cd ${OUT}
11  ${SRC}/bootstrap.bash
12  ./blueprint.bash
13  ${SRC}/bootstrap.bash -r
14)
15
16rm -rf ${OUT}
17mkdir ${OUT}
18
19(
20  cd ${OUT}
21  cp -r ${SRC}/tests/test_tree test_tree
22  ln -s ${SRC} test_tree/blueprint
23  mkdir out
24  cd out
25
26  export SRCDIR=../test_tree
27  ${SRCDIR}/blueprint/bootstrap.bash
28  ./blueprint.bash
29  cp .minibootstrap/build.ninja.in ${SRC}/tests/test_tree/build.ninja.in
30)
31
32rm -rf ${OUT}
33