summaryrefslogtreecommitdiff
path: root/version.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-06 19:12:34 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-06 19:12:34 -0700
commitd8979222e97d3aeb6f6ab8e31f2c7208e2ef0855 (patch)
treeab1250790be5e716319254f19a9b66064be53efc /version.pl
parenta606aced2c64461bfe90a1647865b4e14cce2e1c (diff)
downloadnasm-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-xversion.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/version.pl b/version.pl
index 82aa8832..d9e97330 100755
--- a/version.pl
+++ b/version.pl
@@ -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' ) {