From: kramm Date: Tue, 3 Feb 2004 14:57:32 +0000 (+0000) Subject: writes more debug messages now X-Git-Tag: release-0-5-0~43 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=cfde3bddd44142b4582624dac65f0602cab8e899;p=swftools.git writes more debug messages now --- diff --git a/doc/codebeautifier.pl b/doc/codebeautifier.pl index 6225c83..de76026 100644 --- a/doc/codebeautifier.pl +++ b/doc/codebeautifier.pl @@ -4,14 +4,19 @@ while() $code .= $_ if(!/CALLPERL/); $name = $1 if(/.flash.*name=([^&][^ ]*)/); $name = $1 if(/.flash.*name="([^&]*)"/); + chomp $name; } elsif(/\[CALLPERL .*right\]/ ... /\[CALLPERL end\]/) { $highlight .= $_ if(!/CALLPERL/); } elsif ($code ne "") { $code =~ s/"/"/g; + +# print stderr "Warning: ttf->swf\n" if($code =~ s/Arial.ttf/Arial.swf/g); + open(fi, ">tmp.sc");print fi $code;close(fi); - system("swfc tmp.sc"); + print stderr "swfc tmp.sc ($name)\n"; + system("swfc tmp.sc >&2"); ($embed = `swfdump -e $name`) =~ /WIDTH="([^"]*)"/; $width = $1; print "";