Add .nomedia on Android.

Prevent Android from adding theme files to its media database by putting a
.nomedia file in the rockbox folder.

Change-Id: I76ee3381a6599b9d1ecfe34d15a4fdd35da80336
This commit is contained in:
Dominik Riebeling 2012-05-19 11:00:16 +02:00
parent 63a48fa9b0
commit 6eebdb3bc9

View file

@ -429,6 +429,12 @@ sub buildzip {
if ($modelname =~ /samsungypr0/) {
glob_copy("$ROOT/utils/ypr0tools/rockbox.sh", "$temp_dir/");
}
# add .nomedia on Android
# in the zip.
if ($modelname =~ /android/) {
open(NOMEDIA, ">$temp_dir/.nomedia") || die "can't open .nomedia";
close(NOMEDIA);
}
glob_mkdir("$temp_dir/langs");
glob_mkdir("$temp_dir/rocks");