diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-29 08:17:32 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-29 08:17:32 +0000 |
commit | b2ecf1bc83565602af133a4ab59e98e7813548b3 (patch) | |
tree | 6dc396224fdef8669b4827b322d73c9e959d83a0 /tools | |
parent | 9adf056b7b4e267a1f509376e6fad72334157cf1 (diff) | |
download | rockbox-b2ecf1bc83565602af133a4ab59e98e7813548b3.tar.gz rockbox-b2ecf1bc83565602af133a4ab59e98e7813548b3.zip |
only create the recpresets directory on recording targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13511 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildzip.pl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 98419d8763..1d869f8426 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl | |||
@@ -85,6 +85,9 @@ Remote Icon Height: CONFIG_REMOTE_DEFAULT_ICON_HEIGHT | |||
85 | #else | 85 | #else |
86 | Remote Depth: 0 | 86 | Remote Depth: 0 |
87 | #endif | 87 | #endif |
88 | #ifdef HAVE_RECORDING | ||
89 | Recording: yes | ||
90 | #endif | ||
88 | STOP | 91 | STOP |
89 | ; | 92 | ; |
90 | close(GCC); | 93 | close(GCC); |
@@ -97,6 +100,7 @@ STOP | |||
97 | 100 | ||
98 | my ($bitmap, $depth, $swcodec, $icon_h, $icon_w); | 101 | my ($bitmap, $depth, $swcodec, $icon_h, $icon_w); |
99 | my ($remote_depth, $remote_icon_h, $remote_icon_w); | 102 | my ($remote_depth, $remote_icon_h, $remote_icon_w); |
103 | my ($recording); | ||
100 | $icon_count = 1; | 104 | $icon_count = 1; |
101 | while(<TARGET>) { | 105 | while(<TARGET>) { |
102 | # print STDERR "DATA: $_"; | 106 | # print STDERR "DATA: $_"; |
@@ -125,11 +129,14 @@ STOP | |||
125 | elsif($_ =~ /^Remote Icon Height: (\d*)/) { | 129 | elsif($_ =~ /^Remote Icon Height: (\d*)/) { |
126 | $remote_icon_h = $1; | 130 | $remote_icon_h = $1; |
127 | } | 131 | } |
132 | if($_ =~ /^Recording: (.*)/) { | ||
133 | $recording = $1; | ||
134 | } | ||
128 | } | 135 | } |
129 | close(TARGET); | 136 | close(TARGET); |
130 | unlink("gcctemp"); | 137 | unlink("gcctemp"); |
131 | 138 | ||
132 | return ($bitmap, $depth, $icon_w, $icon_h, | 139 | return ($bitmap, $depth, $icon_w, $icon_h, $recording, |
133 | $swcodec, $remote_depth, $remote_icon_w, $remote_icon_h); | 140 | $swcodec, $remote_depth, $remote_icon_w, $remote_icon_h); |
134 | } | 141 | } |
135 | 142 | ||
@@ -159,7 +166,7 @@ sub buildlangs { | |||
159 | sub buildzip { | 166 | sub buildzip { |
160 | my ($zip, $image, $fonts)=@_; | 167 | my ($zip, $image, $fonts)=@_; |
161 | 168 | ||
162 | my ($bitmap, $depth, $icon_w, $icon_h, $swcodec, | 169 | my ($bitmap, $depth, $icon_w, $icon_h, $recording, $swcodec, |
163 | $remote_depth, $remote_icon_w, $remote_icon_h) = &gettargetinfo(); | 170 | $remote_depth, $remote_icon_w, $remote_icon_h) = &gettargetinfo(); |
164 | 171 | ||
165 | # print "Bitmap: $bitmap\nDepth: $depth\nSwcodec: $swcodec\n"; | 172 | # print "Bitmap: $bitmap\nDepth: $depth\nSwcodec: $swcodec\n"; |
@@ -200,7 +207,9 @@ sub buildzip { | |||
200 | 207 | ||
201 | mkdir ".rockbox/langs", 0777; | 208 | mkdir ".rockbox/langs", 0777; |
202 | mkdir ".rockbox/rocks", 0777; | 209 | mkdir ".rockbox/rocks", 0777; |
203 | mkdir ".rockbox/recpresets", 0777; | 210 | if ($recording) { |
211 | mkdir ".rockbox/recpresets", 0777; | ||
212 | } | ||
204 | 213 | ||
205 | if($swcodec) { | 214 | if($swcodec) { |
206 | mkdir ".rockbox/eqs", 0777; | 215 | mkdir ".rockbox/eqs", 0777; |