about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2010-08-18 12:57:23 -0700
committerPatrick Walton <pcwalton@mimiga.net>2010-08-18 12:57:23 -0700
commit61156ea714d18c48377ee15f1fa08a44990db2c1 (patch)
tree365d34b173a19cf6f278ea68a359288db0343d4c
parent51412cb5fa53efdc58c4b4b7f6cd982279d9c13e (diff)
Fail during build if we can't determine the current Git revision
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 949490fa18b..f213cac1c92 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -305,7 +305,7 @@ all: $(CFG_COMPILER) $(MKFILES) $(GENERATED)
 
 boot/util/version.ml: Makefile
 	$(CFG_QUIET)git log -1 \
-      --format='let version = "prerelease (%h %ci)";;' >$@
+      --format='let version = "prerelease (%h %ci)";;' >$@ || exit 1
 
 loc:
 	$(CFG_QUIET)wc -l $(BOOT_MLS) $(RUNTIME_CS) $(RUNTIME_HDR)