aboutsummaryrefslogtreecommitdiff
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 947102d..a677531 100644
--- a/Buildscr
+++ b/Buildscr
@@ -14,6 +14,10 @@ in puzzles do rm configure.ac~
in puzzles do perl -e 'print "\n\\versionid Simon Tatham'\''s Portable Puzzle Collection, version $$ARGV[0]\n"' $(Version) >> puzzles.but
in puzzles do perl -e 'print "\n\\versionid Simon Tatham'\''s Portable Puzzle Collection, version $$ARGV[0]\n"' $(Version) >> devel.but
+# Write out a version.h that contains the real version number.
+in puzzles do echo '/* Generated by automated build script */' > version.h
+in puzzles do echo '$#define VER "Version $(Version)"' >> version.h
+
# First build some local binaries, to run the icon build.
in puzzles do perl mkfiles.pl -U
in puzzles do make