diff --git a/Buildscr b/Buildscr index af8f5b0..7435889 100644 --- a/Buildscr +++ b/Buildscr @@ -17,7 +17,7 @@ in puzzles do perl -e 'print "\n\\versionid Simon Tatham'\''s Portable Puzzle Co # 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 -in puzzles do perl -e '$$ARGV[0] =~ m{(....)(..)(..)} or die; print "$#define VERSIONINFO_BINARY_VERSION 1,$$1,$$2,$$3\n"' $(!builddate) >> version.h +in puzzles do perl -e '$$ARGV[0] =~ m{(....)(..)(..)} or die; ($$y,$$m,$$d)=($$1,$$2,$$3); $$m =~ s{^0*}{}; $$d =~ s{^0*}{}; print "$#define VERSIONINFO_BINARY_VERSION 1,$$y,$$m,$$d\n"' $(!builddate) >> version.h # And do the same substitution in the OS X metadata. (This is a bit # icky in principle because it presumes that my version numbers don't