From 407166001c2df8ef32aae708ff797b069a0d398b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 16 May 2016 20:30:09 -0700 Subject: 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 --- version.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'version.pl') 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"; } -- cgit v1.2.1