diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2008-01-21 01:48:38 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2008-01-21 01:48:38 +0000 |
| commit | c5f640644db95843d7cef4f8b0f2156b8eba7f4a (patch) | |
| tree | 3ccd7e994adb4799af66c3abb2bddec220e0f673 | |
| parent | 074298082b3e6942961f828f049c7a02ce59d215 (diff) | |
| download | rockbox-c5f640644db95843d7cef4f8b0f2156b8eba7f4a.zip rockbox-c5f640644db95843d7cef4f8b0f2156b8eba7f4a.tar.gz rockbox-c5f640644db95843d7cef4f8b0f2156b8eba7f4a.tar.bz2 rockbox-c5f640644db95843d7cef4f8b0f2156b8eba7f4a.tar.xz | |
Make the build script also install any needed icons.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16129 a1c6a512-1295-4272-9138-f99709370657
| -rwxr-xr-x | wps/wpsbuild.pl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index c109096..5dbe100 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -123,6 +123,21 @@ sub copythemefont { `$cmd`; } +sub copythemeicon { + #copy the icon specified by the theme + + $iconset =~ /\/(.*icons\/(.*))/i; + `cp $ROOT/icons/$2 $1`; +} + +sub copythemeviewericon { + #copy the viewer icon specified by the theme + + $viewericon =~ /\/(.*icons\/(.*))/i; + `cp $ROOT/icons/$2 $1`; +} + + sub copywps { # we assume that we copy the WPS files from the same dir the WPSLIST # file is located in @@ -404,9 +419,11 @@ while(<WPS>) { } elsif($l =~ /^iconset: (.*)/i) { $iconset = $1; + copythemeicon(); } elsif($l =~ /^viewers iconset: (.*)/i) { $viewericon = $1; + copythemeviewericon(); } elsif($l =~ /^line selector text color: (.*)/i) { $lineselecttextcolor = $1; |