summaryrefslogtreecommitdiff
path: root/version.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-05 21:29:32 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-05 21:29:32 -0800
commit18622eb37459bf2fe25943b830fb2ae56b42fdcf (patch)
tree25accc31a69e19bb40a6bb5676594a1d1c93bb46 /version.pl
parent877ca3bc8080cb36b51e1288a8d5dedae733cadd (diff)
downloadnasm-18622eb37459bf2fe25943b830fb2ae56b42fdcf.tar.gz
nasm-18622eb37459bf2fe25943b830fb2ae56b42fdcf.tar.bz2
nasm-18622eb37459bf2fe25943b830fb2ae56b42fdcf.zip
version.pl: produce Makefile variables
Add a mode to version.pl to produce Makefile variables (used by Netware Makefile.)
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 746c006..008460b 100755
--- a/version.pl
+++ b/version.pl
@@ -124,6 +124,12 @@ if ( $what eq 'h' ) {
printf "s/\@\@NASM_VERSION_XID\@\@/0x%08x/g\n", $nasm_id;
printf "s/\@\@NASM_VER\@\@/%s/g\n", $line;
printf "s/\@\@NASM_MANGLED_VER\@\@/%s/g\n", $mangled_ver;
+} elsif ( $what eq 'make' ) {
+ printf "NASM_VER=%s\n", $line;
+ printf "NASM_MAJOR_VER=%d\n", $nmaj;
+ printf "NASM_MINOR_VER=%d\n", $nmin;
+ printf "NASM_SUBMINOR_VER=%d\n", $nsmin;
+ printf "NASM_PATCHLEVEL_VER=%d\n", $nplvl;
} elsif ( $what eq 'id' ) {
print $nasm_id, "\n"; # Print ID in decimal
} elsif ( $what eq 'xid' ) {