Make the build script also install any needed icons.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16129 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Giacomelli 2008-01-21 01:48:38 +00:00
parent 074298082b
commit c5f640644d

View file

@ -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;