summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-17 23:47:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-17 23:47:23 +0000
commit88f359ff269159e87605466e132e5e2cfa3aba3c (patch)
tree451510bb22f32dd175d032ebf17abc306d028a67
parentbba039d22ba6c88cd94dd966a0c845497d5e3f43 (diff)
downloadrockbox-88f359ff269159e87605466e132e5e2cfa3aba3c.tar.gz
rockbox-88f359ff269159e87605466e132e5e2cfa3aba3c.zip
Added tiny docs, only make .cfg files for <wps> sections and shut up a few
outputs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7948 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--wps/WPSLIST32
-rwxr-xr-xwps/wpsbuild.pl13
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
3Name: ipodVOL.wps 26Name: ipodVOL.wps
@@ -59,3 +82,12 @@ Statusbar: off
59Height: 128 82Height: 128
60Width: 160 83Width: 160
61</wps> 84</wps>
85
86<rwps>
87Name: rockbox_default.rwps
88Author: Rockbox team
89Font: rockbox_default.fnt
90Statusbar: on
91Height: 64
92Width: 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) {