docs: fix previous extract.pl commit

Make it also work in the srcdir=builddir case again.
This commit is contained in:
Stefan Kost 2010-12-03 12:23:27 +02:00
parent 1e1872137d
commit 7106cabce3

View file

@ -29,10 +29,17 @@ xml_decode ($)
# main
my $output = shift @ARGV;
my $outputname;
# strip path parts
$output =~ m/.*\/(.*)$/;
my $outputname = $1;
if ($output =~ m/.*\/(.*)$/)
{
$outputname = $1;
}
else
{
$outputname = $output;
}
$found = 0;
%blocks = ();