version.pl: strip ALL whitespace

Strip all whitespace from version.pl input, in case combinations of
tools causes stray \r or other whitespace characters (which has been
observed.)

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2025-10-01 11:20:05 -07:00
parent f8680b2b45
commit ee85248e85

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl
## --------------------------------------------------------------------------
##
##
## Copyright 1996-2016 The NASM Authors - All Rights Reserved
## See the file AUTHORS included with the NASM distribution for
## the specific copyright holders.
@ -15,7 +15,7 @@
## copyright notice, this list of conditions and the following
## disclaimer in the documentation and/or other materials provided
## with the distribution.
##
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
## CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
## INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
@ -68,7 +68,7 @@
($what) = @ARGV;
$line = <STDIN>;
chomp $line;
$line =~ s/\s+//g;
undef $maj;
undef $min;