From 2a97a272f33b0a0ec8bffd85c61091366591aced Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 May 2015 14:53:21 +0200 Subject: Add bootstrap script, INSTALL file --- bootstrap | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 bootstrap (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..86dcc78 --- /dev/null +++ b/bootstrap @@ -0,0 +1,31 @@ +#!/bin/sh + +src="build/*.cxx build/config/*.cxx build/bin/*.cxx build/cxx/*.cxx" + +cxx=g++ + +while test $# -ne 0; do + case $1 in + --help) + echo "Usage: $0 [--help] [--cxx ]" 1>&2 + echo "See the INSTALL file for details." 1>&2 + exit 0 + ;; + --cxx) + shift + if test $# -eq 0; then + echo "error: c++ compiler executable expected after --cxx" 1>&2 + exit 1 + fi + cxx=$1 + shift + ;; + *) + echo "error: unknown option $1" 1>&2 + exit 1 + ;; + esac +done + +echo $cxx -std=c++14 -I. -o build/b-boot $src 1>&2 +exec $cxx -std=c++14 -I. -o build/b-boot $src -- cgit v1.1