From c4d55fdffd85bbb383f1bd035a9d8e3f9d0109da Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 21 Jul 2008 10:51:34 +0000 Subject: 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 --- tools/buildzip.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/buildzip.pl b/tools/buildzip.pl index afa851cd88..380a3e407f 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -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; -- cgit v1.2.3