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/buildzip.pl | |
parent | 9adf056b7b4e267a1f509376e6fad72334157cf1 (diff) |
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/buildzip.pl')
-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 #else Remote Depth: 0 #endif +#ifdef HAVE_RECORDING +Recording: yes +#endif STOP ; close(GCC); @@ -97,6 +100,7 @@ STOP my ($bitmap, $depth, $swcodec, $icon_h, $icon_w); my ($remote_depth, $remote_icon_h, $remote_icon_w); + my ($recording); $icon_count = 1; while(<TARGET>) { # print STDERR "DATA: $_"; @@ -125,11 +129,14 @@ STOP elsif($_ =~ /^Remote Icon Height: (\d*)/) { $remote_icon_h = $1; } + if($_ =~ /^Recording: (.*)/) { + $recording = $1; + } } close(TARGET); unlink("gcctemp"); - return ($bitmap, $depth, $icon_w, $icon_h, + return ($bitmap, $depth, $icon_w, $icon_h, $recording, $swcodec, $remote_depth, $remote_icon_w, $remote_icon_h); } @@ -159,7 +166,7 @@ sub buildlangs { sub buildzip { my ($zip, $image, $fonts)=@_; - my ($bitmap, $depth, $icon_w, $icon_h, $swcodec, + my ($bitmap, $depth, $icon_w, $icon_h, $recording, $swcodec, $remote_depth, $remote_icon_w, $remote_icon_h) = &gettargetinfo(); # print "Bitmap: $bitmap\nDepth: $depth\nSwcodec: $swcodec\n"; @@ -200,7 +207,9 @@ sub buildzip { mkdir ".rockbox/langs", 0777; mkdir ".rockbox/rocks", 0777; - mkdir ".rockbox/recpresets", 0777; + if ($recording) { + mkdir ".rockbox/recpresets", 0777; + } if($swcodec) { mkdir ".rockbox/eqs", 0777; |