diff --git a/.gitignore b/.gitignore index 7a85be60..1abaaf51 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ syml .STD_build_stamp .STD_checkout_stamp STD_checkout +VERSION diff --git a/Makefile b/Makefile index e8509893..5e3a4c86 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ COMPILER=Body.pm CgOp.pm CodeGen.pm CompilerDriver.pm Decl.pm Op.pm RxOp.pm\ Sig.pm Unit.pm Niecza/Actions.pm Niecza/Grammar.pmc .STD_build_stamp all: Setting.dll + git rev-parse HEAD | cut -c1-7 > VERSION test: $(COMPILER) test.pl Setting.dll perl -MFile::Slurp -MCompilerDriver=:all -e 'header; mainline(scalar read_file("test.pl")); bootstrap' > Program.cs