mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
074298082b
commit
c5f640644d
1 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue