From abd103c315540cbbb9897ae96985e756786c6ffd Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 4 Apr 2007 06:26:53 +0000 Subject: [PATCH] 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 --- tools/buildzip.pl | 2 +- wps/WPSLIST | 5 +++++ wps/progressive.11x2x1.wps | 3 +++ wps/wpsbuild.pl | 30 +++++++++++++++--------------- 4 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 wps/progressive.11x2x1.wps diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 3ddb0163d3..380c3a41e2 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -178,6 +178,7 @@ sub buildzip { } mkdir ".rockbox/wps", 0777; + mkdir ".rockbox/themes", 0777; mkdir ".rockbox/codepages", 0777; if($bitmap) { @@ -191,7 +192,6 @@ sub buildzip { if($bitmap) { mkdir ".rockbox/codecs", 0777; - mkdir ".rockbox/themes", 0777; if($depth > 1) { mkdir ".rockbox/backdrops", 0777; } diff --git a/wps/WPSLIST b/wps/WPSLIST index a633764ebb..75d7f060f0 100644 --- a/wps/WPSLIST +++ b/wps/WPSLIST @@ -191,3 +191,8 @@ Foreground Color: 000000 Background Color: FFC000 Statusbar: on + + +Name: progressive.wps +Author: Jens Arnold + \ No newline at end of file diff --git a/wps/progressive.11x2x1.wps b/wps/progressive.11x2x1.wps new file mode 100644 index 0000000000..1e5d853726 --- /dev/null +++ b/wps/progressive.11x2x1.wps @@ -0,0 +1,3 @@ +#wps for the archos player with text alignment +%s%pp/%pe: %?it<%it|%fn> - %?ia<%ia|%d2> - %?id<%id|%d1> +%al%pc%ac%pb%ar%pt \ No newline at end of file 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";