diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-16 20:30:09 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-16 20:30:09 -0700 |
commit | 407166001c2df8ef32aae708ff797b069a0d398b (patch) | |
tree | bb576fc34a9bb01296a5c88311661a9c27645817 /version.pl | |
parent | b06736ae7ee2af15c2d7176ca9cf241661b7cb49 (diff) | |
download | nasm-407166001c2df8ef32aae708ff797b069a0d398b.tar.gz |
Fix building in a separate directory from the source code
The code to handle building in a separate directory had seriously
bitrotted. This contains a number of fixes to make it possible,
including bits like the documentation which never worked in the past.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'version.pl')
-rwxr-xr-x | version.pl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/perl ## -------------------------------------------------------------------------- ## -## Copyright 1996-2009 The NASM Authors - All Rights Reserved +## Copyright 1996-2016 The NASM Authors - All Rights Reserved ## See the file AUTHORS included with the NASM distribution for ## the specific copyright holders. ## @@ -178,6 +178,9 @@ if ( $what eq 'h' ) { print $nasm_id, "\n"; # Print ID in decimal } elsif ( $what eq 'xid' ) { printf "0x%08x\n", $nasm_id; # Print ID in hexadecimal +} elsif ( $what eq 'docsrc' ) { + printf "\\M{version}{%s}\n", $line; + printf "\\M{subtitle}{version %s}\n", $line; } else { die "$0: Unknown output: $what\n"; } |