From f9498799de1fe3e22c695c54284e6d072f8daecc Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 16 May 2010 13:04:47 +0100 Subject: [PATCH] Handle whitespace better in import script Make the import script handle multiple, rather than just single, whitespace separators between source and destination files. Change-Id: I0cc0fdd6ba1ef4bd5407b2e0fd9285ffe902408b Reviewed-on: http://gerrit.openafs.org/2572 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/external/import-external-git.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/import-external-git.pl b/src/external/import-external-git.pl index e03abc401..5a279d3b8 100755 --- a/src/external/import-external-git.pl +++ b/src/external/import-external-git.pl @@ -49,7 +49,7 @@ my $fh = IO::File->new("$externalDir/$module-files") or die "Couldn't open mapping file : $!\n"; while (<$fh>) { next if /^\s#/; - if (/^(.+)\s+(.+)$/) { + if (/^(\S+)\s+(\S+)$/) { $mapping{$1} = $2; } elsif (/\w+/) { die "Unrecognised line in mapping file : $_\n"; -- 2.39.5