Index: wps/wpsbuild.pl =================================================================== --- wps/wpsbuild.pl (revision 12121) +++ wps/wpsbuild.pl (working copy) @@ -114,6 +114,7 @@ my $dir; my @filelist; my $file; + my $tarbmps; if($wpslist =~ /(.*)WPSLIST/) { $dir = $1; @@ -126,12 +127,21 @@ } elsif (-e "$dir/$req_g_wps") { system("cp $dir/$req_g_wps .rockbox/wps/$wps"); + $tarbmps = ''; open(WPSFILE, "$dir/$req_g_wps"); while () { - $filelist[$#filelist + 1] = $1 if (/\|([^|]*?.bmp)\|/); + if (/\|([^|]*?.bmp)\|/) { + my $f = $1; + if (/^%x/) { $tarbmps .= ' '.$f; } + else { $filelist[$#filelist + 1] = $f }; + } } close(WPSFILE); + if ($tarbmps ne '') { + system("tar cf .rockbox/wps/$wps_prefix.tar -C $dir/$wps_prefix $tarbmps"); + } + if (-e "$dir/$wps_prefix/$req_g") { foreach $file (@filelist) { system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/");