forked from len0rd/rockbox
Add a glob_move() function and use it for moving the .cp files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18113 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eaa65482da
commit
c4d55fdffd
1 changed files with 8 additions and 2 deletions
|
|
@ -20,6 +20,13 @@ sub glob_copy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub glob_move {
|
||||||
|
my ($pattern, $destination) = @_;
|
||||||
|
foreach my $path (glob($pattern)) {
|
||||||
|
move($path, $destination);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sub glob_unlink {
|
sub glob_unlink {
|
||||||
my ($pattern) = @_;
|
my ($pattern) = @_;
|
||||||
foreach my $path (glob($pattern)) {
|
foreach my $path (glob($pattern)) {
|
||||||
|
|
@ -264,8 +271,7 @@ STOP
|
||||||
system("$ROOT/tools/codepages -m");
|
system("$ROOT/tools/codepages -m");
|
||||||
}
|
}
|
||||||
|
|
||||||
glob_copy('*.cp', '.rockbox/codepages/');
|
glob_move('*.cp', '.rockbox/codepages/');
|
||||||
glob_unlink('*.cp');
|
|
||||||
|
|
||||||
if($bitmap) {
|
if($bitmap) {
|
||||||
mkdir ".rockbox/codecs", 0777;
|
mkdir ".rockbox/codecs", 0777;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue