diff options
Diffstat (limited to 'wps')
-rw-r--r-- | wps/WPSLIST | 32 | ||||
-rwxr-xr-x | wps/wpsbuild.pl | 13 |
2 files changed, 40 insertions, 5 deletions
diff --git a/wps/WPSLIST b/wps/WPSLIST index b425543dc0..6f06f71967 100644 --- a/wps/WPSLIST +++ b/wps/WPSLIST | |||
@@ -1,3 +1,26 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | # WPSLIST | ||
10 | # | ||
11 | # This should list all WPS and RWPS files we have and what their requirements | ||
12 | # and preferences are. | ||
13 | # | ||
14 | # Each <wps> section will also cause a "theme" .cfg to be made, which the | ||
15 | # <rwps> sections will not cause. | ||
16 | # | ||
17 | # A <wps> section can thus mention a "preferred" rwps file to load when that | ||
18 | # theme is loaded. | ||
19 | # | ||
20 | # All sections should list what their smallest LCD size requirements are and | ||
21 | # what font and status bar setting they "like". | ||
22 | # | ||
23 | |||
1 | <wps> | 24 | <wps> |
2 | # Name of the WPS _including_ extension | 25 | # Name of the WPS _including_ extension |
3 | Name: ipodVOL.wps | 26 | Name: ipodVOL.wps |
@@ -59,3 +82,12 @@ Statusbar: off | |||
59 | Height: 128 | 82 | Height: 128 |
60 | Width: 160 | 83 | Width: 160 |
61 | </wps> | 84 | </wps> |
85 | |||
86 | <rwps> | ||
87 | Name: rockbox_default.rwps | ||
88 | Author: Rockbox team | ||
89 | Font: rockbox_default.fnt | ||
90 | Statusbar: on | ||
91 | Height: 64 | ||
92 | Width: 128 | ||
93 | </rwps> | ||
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 366f77bfe1..7fe46adcf3 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl | |||
@@ -92,7 +92,7 @@ sub mkdirs { | |||
92 | mkdir ".rockbox/wps", 0777; | 92 | mkdir ".rockbox/wps", 0777; |
93 | 93 | ||
94 | if( -d ".rockbox/wps/$wpsdir") { | 94 | if( -d ".rockbox/wps/$wpsdir") { |
95 | print STDERR "wpsbuild warning: directory wps/$wpsdir already exists!\n"; | 95 | #print STDERR "wpsbuild warning: directory wps/$wpsdir already exists!\n"; |
96 | } | 96 | } |
97 | else { | 97 | else { |
98 | mkdir ".rockbox/wps/$wpsdir", 0777; | 98 | mkdir ".rockbox/wps/$wpsdir", 0777; |
@@ -109,9 +109,7 @@ sub copywps { | |||
109 | my $wpsdir = $wps; | 109 | my $wpsdir = $wps; |
110 | $wpsdir =~ s/\.(r|)wps//; | 110 | $wpsdir =~ s/\.(r|)wps//; |
111 | system("cp $dir/$wps .rockbox/wps/"); | 111 | system("cp $dir/$wps .rockbox/wps/"); |
112 | if ($rwps) { | 112 | |
113 | system("cp $dir/$rwps .rockbox/wps/"); | ||
114 | } | ||
115 | if (-e "$dir/$wpsdir") { | 113 | if (-e "$dir/$wpsdir") { |
116 | system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/"); | 114 | system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/"); |
117 | } | 115 | } |
@@ -199,7 +197,10 @@ while(<WPS>) { | |||
199 | #print "Size requirement is fine!\n"; | 197 | #print "Size requirement is fine!\n"; |
200 | 198 | ||
201 | mkdirs(); | 199 | mkdirs(); |
202 | buildcfg(); | 200 | if(!$isrwps) { |
201 | # We only make .cfg files for <wps> sections: | ||
202 | buildcfg(); | ||
203 | } | ||
203 | copywps(); | 204 | copywps(); |
204 | } | 205 | } |
205 | else { | 206 | else { |
@@ -210,6 +211,8 @@ while(<WPS>) { | |||
210 | undef $wps, $rwps, $width, $height, $font, $statusbar, $author; | 211 | undef $wps, $rwps, $width, $height, $font, $statusbar, $author; |
211 | } | 212 | } |
212 | elsif($l =~ /^Name: (.*)/i) { | 213 | elsif($l =~ /^Name: (.*)/i) { |
214 | # Note that in the case this is within <rwps>, $wps will contain the | ||
215 | # name of the rwps. Use $isrwps to figure out what type it is. | ||
213 | $wps = $1; | 216 | $wps = $1; |
214 | } | 217 | } |
215 | elsif($l =~ /^RWPS: (.*)/i) { | 218 | elsif($l =~ /^RWPS: (.*)/i) { |