diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-05 21:29:32 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-05 21:29:32 -0800 |
commit | 18622eb37459bf2fe25943b830fb2ae56b42fdcf (patch) | |
tree | 25accc31a69e19bb40a6bb5676594a1d1c93bb46 /version.pl | |
parent | 877ca3bc8080cb36b51e1288a8d5dedae733cadd (diff) | |
download | nasm-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-x | version.pl | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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' ) { |