From c5f640644db95843d7cef4f8b0f2156b8eba7f4a Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Mon, 21 Jan 2008 01:48:38 +0000 Subject: Make the build script also install any needed icons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16129 a1c6a512-1295-4272-9138-f99709370657 --- wps/wpsbuild.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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() { } elsif($l =~ /^iconset: (.*)/i) { $iconset = $1; + copythemeicon(); } elsif($l =~ /^viewers iconset: (.*)/i) { $viewericon = $1; + copythemeviewericon(); } elsif($l =~ /^line selector text color: (.*)/i) { $lineselecttextcolor = $1; -- cgit v1.1