Commit 8f604dda authored by twanvl's avatar twanvl

teset script: ignore trailing whitespace of game name

parent 10926a52
...@@ -24,18 +24,18 @@ sub test_stylesheet { ...@@ -24,18 +24,18 @@ sub test_stylesheet {
my $game; my $game;
open STYLE, "< $path/style"; open STYLE, "< $path/style";
while (<STYLE>) { while (<STYLE>) {
$game = $1 if /^game: (.*)/; $game = $1 if /^game:\s*(\S*)/;
} }
close STYLE; close STYLE;
die ("No game found for $package") if !$game; die ("No game found for $package") if !$game;
# Stylesheet suffix # Stylesheet suffix
my $suffix; my $suffix;
if ($package =~ /$game-(.+).mse-style/) { if ($package =~ /$game-(.+).mse-style$/) {
$suffix = $1; $suffix = $1;
} else { } else {
#die ("Stylesheet filename doesn't match game"); #die ("Stylesheet filename doesn't match game");
print (" Stylesheet filename doesn't match game!\n"); print (" Stylesheet filename doesn't match game ($game)!\n");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment