diff options
author | Hardeep Sidhu <dyp@pobox.com> | 2006-06-14 22:06:11 +0000 |
---|---|---|
committer | Hardeep Sidhu <dyp@pobox.com> | 2006-06-14 22:06:11 +0000 |
commit | ca0302ac944c03de800d4b5de718edfe16a660a5 (patch) | |
tree | 2fd4f81d8dc79d521956010b3c13c80d418d1c6e /wps/wpsbuild.pl | |
parent | c7bb9493a8e6c4154c3d9bc11edf0da550c48dbd (diff) | |
download | rockbox-ca0302ac944c03de800d4b5de718edfe16a660a5.tar.gz rockbox-ca0302ac944c03de800d4b5de718edfe16a660a5.zip |
Added iCatcher and UniCatcher themes by Ioannis Koutoulakis. Also updated wpsbuild to support different fonts for same theme depending on target screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10120 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-x | wps/wpsbuild.pl | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 03a1f664d5..0334133aa6 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl | |||
@@ -121,10 +121,10 @@ sub copywps { | |||
121 | # print "$req_t_wps $req_g_wps\n"; | 121 | # print "$req_t_wps $req_g_wps\n"; |
122 | 122 | ||
123 | if (-e "$dir/$req_t_wps" ) { | 123 | if (-e "$dir/$req_t_wps" ) { |
124 | system("cp $dir/$req_t_wps .rockbox/wps/$wps"); | 124 | system("cp $dir/$req_t_wps .rockbox/wps/$wps"); |
125 | 125 | ||
126 | } elsif (-e "$dir/$req_g_wps") { | 126 | } elsif (-e "$dir/$req_g_wps") { |
127 | system("cp $dir/$req_g_wps .rockbox/wps/$wps"); | 127 | system("cp $dir/$req_g_wps .rockbox/wps/$wps"); |
128 | 128 | ||
129 | open(WPSFILE, "$dir/$req_g_wps"); | 129 | open(WPSFILE, "$dir/$req_g_wps"); |
130 | while (<WPSFILE>) { | 130 | while (<WPSFILE>) { |
@@ -215,7 +215,7 @@ while(<WPS>) { | |||
215 | undef $statusbar; | 215 | undef $statusbar; |
216 | undef $author; | 216 | undef $author; |
217 | undef $req_g_wps; | 217 | undef $req_g_wps; |
218 | undef $req_t_wps; | 218 | undef $req_t_wps; |
219 | next; | 219 | next; |
220 | } | 220 | } |
221 | if($within) { | 221 | if($within) { |
@@ -239,15 +239,15 @@ while(<WPS>) { | |||
239 | } | 239 | } |
240 | $wpslist =~ /(.*)WPSLIST/; | 240 | $wpslist =~ /(.*)WPSLIST/; |
241 | my $wpsdir = $1; | 241 | my $wpsdir = $1; |
242 | # If this WPS installable on this platform, one of the following | 242 | # If this WPS installable on this platform, one of the following |
243 | # two files will be present | 243 | # two files will be present |
244 | foreach $d (@depthlist) { | 244 | foreach $d (@depthlist) { |
245 | next if ($d > $rdepth); | 245 | next if ($d > $rdepth); |
246 | 246 | ||
247 | $req_g = $rwidth . "x" . $rheight . "x" . $d; | 247 | $req_g = $rwidth . "x" . $rheight . "x" . $d; |
248 | 248 | ||
249 | $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; | 249 | $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; |
250 | last if (-e "$wpsdir/$req_g_wps"); | 250 | last if (-e "$wpsdir/$req_g_wps"); |
251 | } | 251 | } |
252 | $req_t_wps = $wps_prefix . ".txt" . ".wps"; | 252 | $req_t_wps = $wps_prefix . ".txt" . ".wps"; |
253 | 253 | ||
@@ -270,7 +270,7 @@ while(<WPS>) { | |||
270 | } | 270 | } |
271 | else { | 271 | else { |
272 | #print "(${wps_prefix}-${rwidth}x${rheight}x$rdepth) "; | 272 | #print "(${wps_prefix}-${rwidth}x${rheight}x$rdepth) "; |
273 | print "Skip $wps due to size restraints\n"; | 273 | print "Skip $wps due to size restraints\n"; |
274 | } | 274 | } |
275 | $within = 0; | 275 | $within = 0; |
276 | } | 276 | } |
@@ -296,6 +296,9 @@ while(<WPS>) { | |||
296 | elsif($l =~ /^Font: (.*)/i) { | 296 | elsif($l =~ /^Font: (.*)/i) { |
297 | $font = $1; | 297 | $font = $1; |
298 | } | 298 | } |
299 | elsif($l =~ /^Font\.${main_width}x${main_height}x$main_depth: (.*)/i) { | ||
300 | $font = $1; | ||
301 | } | ||
299 | elsif($l =~ /^Statusbar: (.*)/i) { | 302 | elsif($l =~ /^Statusbar: (.*)/i) { |
300 | $statusbar = $1; | 303 | $statusbar = $1; |
301 | } | 304 | } |