summaryrefslogtreecommitdiff
path: root/Buildscr
diff options
context:
space:
mode:
Diffstat (limited to 'Buildscr')
-rw-r--r--Buildscr4
1 files changed, 4 insertions, 0 deletions
diff --git a/Buildscr b/Buildscr
index e90e1e3..d954d1b 100644
--- a/Buildscr
+++ b/Buildscr
@@ -11,6 +11,10 @@ ifneq "$(RELEASE)" "" set Version $(RELEASE)
# use perl to avoid inconsistent behaviour of echo '\v'
in halibut do perl -e 'print "\n\\versionid Halibut version $$ARGV[0]\n"' $(Version) >> doc/manpage.but
+# Write out a version.h that contains the real version number.
+in halibut do echo '/* Generated by automated build script */' > version.h
+in halibut do echo '$#define VERSION "version $(Version)"' >> version.h
+
set Rel
ifneq "$(RELEASE)" "" set Rel RELEASE=$(RELEASE)