summaryrefslogtreecommitdiffstats
path: root/wps/wpsbuild.pl
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-11-16 01:24:52 +0000
committerChristi Scarborough <christi@coraline.org>2005-11-16 01:24:52 +0000
commita7db52ca894f9d80845267f743ae56663b37f605 (patch)
tree0db798177b03ef55317467f85ea75312a76a6944 /wps/wpsbuild.pl
parent3be6cf15742083b9786fba52d40f61e5803db840 (diff)
downloadrockbox-a7db52ca894f9d80845267f743ae56663b37f605.tar.gz
rockbox-a7db52ca894f9d80845267f743ae56663b37f605.tar.bz2
rockbox-a7db52ca894f9d80845267f743ae56663b37f605.zip
Adds support for reverting to the Rockbox default WPS. Note that the rockbox_default.wps is a placeholder file and is never actually loaded - selecting it just causes Rockbox to clear its memory of any installed custom WPS. This means that it works cross platform. Also, small fix to boxes.wps (curse vi) and wpsbuild.pl - support for pure text WPS files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7899 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-xwps/wpsbuild.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index 11856436cc..a8e325fde7 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -88,7 +88,9 @@ sub copywps {
my $wpsdir = $wps;
$wpsdir =~ s/\.wps//;
system("cp $dir/$wps .rockbox/wps/");
- system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/");
+ if (-e "$dir/$wpsdir") {
+ system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/");
+ }
}
else {
print STDERR "beep, no dir to copy WPS from!\n";