nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tools: add mkcsrc2 prototype to bootstrap with nitg from C
[nit.git]
/
src
/
mkcsrc2
1
#!/bin/bash
2
cd ..
3
out=csrc2
4
rm -r "$out/" 2> /dev/null
5
set -e
6
set -x
7
src/nitg src/nitg.nit -v "$@" --compile-dir "$out" -o "$out/nitg" --no-cc
8
mv "$out/nitg.mk" "$out/Makefile"
9
sed -i -e "s#../$out/##g" "$out/Makefile"