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
This commit is contained in:
Daniel Stenberg 2005-11-17 23:47:23 +00:00
parent bba039d22b
commit 88f359ff26
2 changed files with 40 additions and 5 deletions

View file

@ -1,3 +1,26 @@
# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id$
#
# WPSLIST
#
# This should list all WPS and RWPS files we have and what their requirements
# and preferences are.
#
# Each <wps> section will also cause a "theme" .cfg to be made, which the
# <rwps> sections will not cause.
#
# A <wps> section can thus mention a "preferred" rwps file to load when that
# theme is loaded.
#
# All sections should list what their smallest LCD size requirements are and
# what font and status bar setting they "like".
#
<wps>
# Name of the WPS _including_ extension
Name: ipodVOL.wps
@ -59,3 +82,12 @@ Statusbar: off
Height: 128
Width: 160
</wps>
<rwps>
Name: rockbox_default.rwps
Author: Rockbox team
Font: rockbox_default.fnt
Statusbar: on
Height: 64
Width: 128
</rwps>

View file

@ -92,7 +92,7 @@ sub mkdirs {
mkdir ".rockbox/wps", 0777;
if( -d ".rockbox/wps/$wpsdir") {
print STDERR "wpsbuild warning: directory wps/$wpsdir already exists!\n";
#print STDERR "wpsbuild warning: directory wps/$wpsdir already exists!\n";
}
else {
mkdir ".rockbox/wps/$wpsdir", 0777;
@ -109,9 +109,7 @@ sub copywps {
my $wpsdir = $wps;
$wpsdir =~ s/\.(r|)wps//;
system("cp $dir/$wps .rockbox/wps/");
if ($rwps) {
system("cp $dir/$rwps .rockbox/wps/");
}
if (-e "$dir/$wpsdir") {
system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/");
}
@ -199,7 +197,10 @@ while(<WPS>) {
#print "Size requirement is fine!\n";
mkdirs();
buildcfg();
if(!$isrwps) {
# We only make .cfg files for <wps> sections:
buildcfg();
}
copywps();
}
else {
@ -210,6 +211,8 @@ while(<WPS>) {
undef $wps, $rwps, $width, $height, $font, $statusbar, $author;
}
elsif($l =~ /^Name: (.*)/i) {
# Note that in the case this is within <rwps>, $wps will contain the
# name of the rwps. Use $isrwps to figure out what type it is.
$wps = $1;
}
elsif($l =~ /^RWPS: (.*)/i) {