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:
Jens Arnold 2008-07-21 10:51:34 +00:00
parent eaa65482da
commit c4d55fdffd

View file

@ -20,6 +20,13 @@ sub glob_copy {
}
}
sub glob_move {
my ($pattern, $destination) = @_;
foreach my $path (glob($pattern)) {
move($path, $destination);
}
}
sub glob_unlink {
my ($pattern) = @_;
foreach my $path (glob($pattern)) {
@ -264,8 +271,7 @@ STOP
system("$ROOT/tools/codepages -m");
}
glob_copy('*.cp', '.rockbox/codepages/');
glob_unlink('*.cp');
glob_move('*.cp', '.rockbox/codepages/');
if($bitmap) {
mkdir ".rockbox/codecs", 0777;