mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
TAB/whitespace policing - no functional changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16383 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b68a762aef
commit
a32de4f25f
1 changed files with 97 additions and 94 deletions
153
wps/wpsbuild.pl
153
wps/wpsbuild.pl
|
@ -37,7 +37,8 @@ if(!$wpslist) {
|
|||
exit;
|
||||
}
|
||||
|
||||
sub getlcdsizes {
|
||||
sub getlcdsizes
|
||||
{
|
||||
my ($remote) = @_;
|
||||
|
||||
open(GCC, ">gcctemp");
|
||||
|
@ -91,7 +92,8 @@ STOP
|
|||
return ($height, $width, $depth);
|
||||
}
|
||||
|
||||
sub mkdirs {
|
||||
sub mkdirs
|
||||
{
|
||||
my $wpsdir = $wps;
|
||||
$wpsdir =~ s/\.(r|)wps//;
|
||||
mkdir ".rockbox/wps", 0777;
|
||||
|
@ -106,40 +108,44 @@ sub mkdirs {
|
|||
}
|
||||
}
|
||||
|
||||
sub copybackdrop {
|
||||
#copy the backdrop file into the build dir
|
||||
$dst = $backdrop;
|
||||
$dst =~ s/(\.[0-9]*x[0-9]*x[0-9]*)//;
|
||||
$cmd = "cp $ROOT/$backdrop .rockbox/$dst";
|
||||
`$cmd`;
|
||||
sub copybackdrop
|
||||
{
|
||||
#copy the backdrop file into the build dir
|
||||
$dst = $backdrop;
|
||||
$dst =~ s/(\.[0-9]*x[0-9]*x[0-9]*)//;
|
||||
$cmd = "cp $ROOT/$backdrop .rockbox/$dst";
|
||||
`$cmd`;
|
||||
}
|
||||
|
||||
sub copythemefont {
|
||||
#copy the font specified by the theme
|
||||
sub copythemefont
|
||||
{
|
||||
#copy the font specified by the theme
|
||||
|
||||
$o=$font;
|
||||
$o =~ s/\.fnt/\.bdf/;
|
||||
`mkdir .rockbox/fonts/ >/dev/null 2>&1`;
|
||||
$cmd ="$ROOT/tools/convbdf -f -o \".rockbox/fonts/$font\" \"$ROOT/fonts/$o\" ";
|
||||
`$cmd`;
|
||||
$o=$font;
|
||||
$o =~ s/\.fnt/\.bdf/;
|
||||
`mkdir .rockbox/fonts/ >/dev/null 2>&1`;
|
||||
$cmd ="$ROOT/tools/convbdf -f -o \".rockbox/fonts/$font\" \"$ROOT/fonts/$o\" ";
|
||||
`$cmd`;
|
||||
}
|
||||
|
||||
sub copythemeicon {
|
||||
#copy the icon specified by the theme
|
||||
sub copythemeicon
|
||||
{
|
||||
#copy the icon specified by the theme
|
||||
|
||||
$iconset =~ /\/(.*icons\/(.*))/i;
|
||||
`cp $ROOT/icons/$2 $1`;
|
||||
$iconset =~ /\/(.*icons\/(.*))/i;
|
||||
`cp $ROOT/icons/$2 $1`;
|
||||
}
|
||||
|
||||
sub copythemeviewericon {
|
||||
#copy the viewer icon specified by the theme
|
||||
sub copythemeviewericon
|
||||
{
|
||||
#copy the viewer icon specified by the theme
|
||||
|
||||
$viewericon =~ /\/(.*icons\/(.*))/i;
|
||||
`cp $ROOT/icons/$2 $1`;
|
||||
$viewericon =~ /\/(.*icons\/(.*))/i;
|
||||
`cp $ROOT/icons/$2 $1`;
|
||||
}
|
||||
|
||||
|
||||
sub copywps {
|
||||
sub copywps
|
||||
{
|
||||
# we assume that we copy the WPS files from the same dir the WPSLIST
|
||||
# file is located in
|
||||
my $dir;
|
||||
|
@ -214,8 +220,8 @@ MOO
|
|||
push @out, "statusbar: $statusbar\n";
|
||||
}
|
||||
if($backdrop) {
|
||||
#clip resolution from filename
|
||||
$backdrop =~ s/(\.[0-9]*x[0-9]*x[0-9]*)//;
|
||||
# clip resolution from filename
|
||||
$backdrop =~ s/(\.[0-9]*x[0-9]*x[0-9]*)//;
|
||||
push @out, "backdrop: /.rockbox/$backdrop\n";
|
||||
}
|
||||
if($lineselectstart && $main_depth > 2) {
|
||||
|
@ -403,54 +409,51 @@ while(<WPS>) {
|
|||
elsif($l =~ /^Statusbar\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$statusbar = $1;
|
||||
}
|
||||
elsif($l =~ /^Backdrop: (.*)/i) {
|
||||
$backdrop = $1;
|
||||
copybackdrop();
|
||||
}
|
||||
elsif($l =~ /^Backdrop\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$backdrop = $1;
|
||||
copybackdrop();
|
||||
}
|
||||
elsif($l =~ /^line selector start color: (.*)/i) {
|
||||
$lineselectstart = $1;
|
||||
}
|
||||
elsif($l =~ /^line selector end color: (.*)/i) {
|
||||
$lineselectend = $1;
|
||||
}
|
||||
elsif($l =~ /^selector type: (.*)/i) {
|
||||
$selecttype = $1;
|
||||
}
|
||||
elsif($l =~ /^selector type\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$selecttype = $1;
|
||||
}
|
||||
elsif($l =~ /^iconset: (.*)/i) {
|
||||
$iconset = $1;
|
||||
copythemeicon();
|
||||
}
|
||||
elsif($l =~ /^iconset\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$iconset = $1;
|
||||
copythemeicon();
|
||||
}
|
||||
elsif($l =~ /^viewers iconset: (.*)/i) {
|
||||
$viewericon = $1;
|
||||
copythemeviewericon();
|
||||
}
|
||||
elsif($l =~ /^viewers iconset\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$viewericon = $1;
|
||||
copythemeviewericon();
|
||||
}
|
||||
elsif($l =~ /^line selector text color: (.*)/i) {
|
||||
$lineselecttextcolor = $1;
|
||||
}
|
||||
elsif($l =~ /^filetype colours: (.*)/i) {
|
||||
$filetylecolor = $1;
|
||||
}
|
||||
else{
|
||||
#print "Unknown line: $l!\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
elsif($l =~ /^Backdrop: (.*)/i) {
|
||||
$backdrop = $1;
|
||||
copybackdrop();
|
||||
}
|
||||
elsif($l =~ /^Backdrop\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$backdrop = $1;
|
||||
copybackdrop();
|
||||
}
|
||||
elsif($l =~ /^line selector start color: (.*)/i) {
|
||||
$lineselectstart = $1;
|
||||
}
|
||||
elsif($l =~ /^line selector end color: (.*)/i) {
|
||||
$lineselectend = $1;
|
||||
}
|
||||
elsif($l =~ /^selector type: (.*)/i) {
|
||||
$selecttype = $1;
|
||||
}
|
||||
elsif($l =~ /^selector type\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$selecttype = $1;
|
||||
}
|
||||
elsif($l =~ /^iconset: (.*)/i) {
|
||||
$iconset = $1;
|
||||
copythemeicon();
|
||||
}
|
||||
elsif($l =~ /^iconset\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$iconset = $1;
|
||||
copythemeicon();
|
||||
}
|
||||
elsif($l =~ /^viewers iconset: (.*)/i) {
|
||||
$viewericon = $1;
|
||||
copythemeviewericon();
|
||||
}
|
||||
elsif($l =~ /^viewers iconset\.${main_width}x${main_height}x$main_depth: (.*)/i) {
|
||||
$viewericon = $1;
|
||||
copythemeviewericon();
|
||||
}
|
||||
elsif($l =~ /^line selector text color: (.*)/i) {
|
||||
$lineselecttextcolor = $1;
|
||||
}
|
||||
elsif($l =~ /^filetype colours: (.*)/i) {
|
||||
$filetylecolor = $1;
|
||||
}
|
||||
else{
|
||||
#print "Unknown line: $l!\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue