summaryrefslogtreecommitdiff
path: root/wps/wpsbuild.pl
diff options
context:
space:
mode:
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-xwps/wpsbuild.pl25
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 }