diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-06 19:12:34 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-06 19:12:34 -0700 |
commit | d8979222e97d3aeb6f6ab8e31f2c7208e2ef0855 (patch) | |
tree | ab1250790be5e716319254f19a9b66064be53efc /version.pl | |
parent | a606aced2c64461bfe90a1647865b4e14cce2e1c (diff) | |
download | nasm-d8979222e97d3aeb6f6ab8e31f2c7208e2ef0855.tar.gz |
nasm.nsi: add NASM Manual; automate version generation
Add the NASM Manual (as a PDF) to the Windows installer, and abstract
out the version number.
Diffstat (limited to 'version.pl')
-rwxr-xr-x | version.pl | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -135,6 +135,12 @@ if ( $what eq 'h' ) { printf "NASM_MINOR_VER=%d\n", $nmin; printf "NASM_SUBMINOR_VER=%d\n", $nsmin; printf "NASM_PATCHLEVEL_VER=%d\n", $nplvl; +} elsif ( $what eq 'nsis' ) { + printf "!define VERSION \"%s\"\n", $line; + printf "!define MAJOR_VER %d\n", $nmin; + printf "!define MINOR_VER %d\n", $nmin; + printf "!define SUBMINOR_VER %d\n", $nsmin; + printf "!define PATCHLEVEL_VER %d\n", $nplvl; } elsif ( $what eq 'id' ) { print $nasm_id, "\n"; # Print ID in decimal } elsif ( $what eq 'xid' ) { |