From ee85248e85747a4adc341c874d4b593496e9d7be Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 1 Oct 2025 11:20:05 -0700 Subject: [PATCH] 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) --- version.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/version.pl b/version.pl index 634ad311c..2ecf90b51 100755 --- a/version.pl +++ b/version.pl @@ -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 = ; -chomp $line; +$line =~ s/\s+//g; undef $maj; undef $min;