summaryrefslogtreecommitdiff
path: root/version.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-05-16 20:30:09 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-05-16 20:30:09 -0700
commit407166001c2df8ef32aae708ff797b069a0d398b (patch)
treebb576fc34a9bb01296a5c88311661a9c27645817 /version.pl
parentb06736ae7ee2af15c2d7176ca9cf241661b7cb49 (diff)
downloadnasm-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-xversion.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/version.pl b/version.pl
index e4157a2d..a5577a02 100755
--- a/version.pl
+++ b/version.pl
@@ -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";
}