From abd103c315540cbbb9897ae96985e756786c6ffd Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 4 Apr 2007 06:26:53 +0000 Subject: Enable building WPSs and themes for charcell targets, and add an example WPS using special charcell progress and text alignment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13015 a1c6a512-1295-4272-9138-f99709370657 --- wps/wpsbuild.pl | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'wps/wpsbuild.pl') diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index b33e70bf4a..46aa46eeb8 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -56,11 +56,9 @@ STOP else { print GCC <= 0) { + if (-e "$dir/$wps_prefix/$req_g") { + foreach $file (@filelist) { + system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/"); + } + } + elsif (-e "$dir/$wps_prefix") { + foreach $file (@filelist) { + system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/"); + } } - } - elsif (-e "$dir/$wps_prefix") { - foreach $file (@filelist) { - system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/"); + else { + print STDERR "beep, no dir to copy WPS from!\n"; } - } - else { - print STDERR "beep, no dir to copy WPS from!\n"; } - + } else { print STDERR "Skipping $wps - no matching resolution.\n"; } @@ -255,7 +255,7 @@ while() { $req_g = $rwidth . "x" . $rheight . "x" . $d; $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; - last if (-e "$wpsdir/$req_g_wps"); + last if (-e "$wpsdir/$req_g_wps"); if ($isrwps) { $req_g = $req_g . "." . $main_width . "x" . $main_height . "x" . "$main_depth"; -- cgit v1.2.3