From 02339d09ee9df166388be2a17bf643e29ffc7576 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 23 Feb 2016 14:07:37 -0500 Subject: Pre-eshld three-stage bootstrap script: Now you see it... eshtrans was first able to pass a three-stage bootstrap at commit f6e7120 and failed to bootstrap with this script beginning at commit c8148e0 (when the runtime library became required). --- (limited to 'eshtrans/bootstrap.sh') diff --git a/eshtrans/bootstrap.sh b/eshtrans/bootstrap.sh new file mode 100644 index 0000000..00b8072 --- /dev/null +++ b/eshtrans/bootstrap.sh @@ -0,0 +1,18 @@ +printf 'Stage 1\n' +printf 'main "${@}"\n' | cat $(find * -type f -a -name '*.esh') - >stage1.sh + +printf 'Stage 2\n' +>stage2.sh +for f in $(find * -type f -a -name '*.esh'); do + echo compiling "$f" + time -p sh stage1.sh "$f" >>stage2.sh +done +printf 'main "${@}"\n' >>stage2.sh + +printf 'Stage 3\n' +>stage3.sh +for f in $(find * -type f -a -name '*.esh'); do + echo compiling "$f" + time -p sh stage2.sh "$f" >>stage3.sh +done +printf 'main "${@}"\n' >>stage3.sh -- cgit v0.9.1