summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-07-21 10:51:34 +0000
committerJens Arnold <amiconn@rockbox.org>2008-07-21 10:51:34 +0000
commitc4d55fdffd85bbb383f1bd035a9d8e3f9d0109da (patch)
tree209df36276d35ae26e88faa2ebdbe97e0c9876b7 /tools
parenteaa65482dafc82a3a22d265f3593cff67ea80c8a (diff)
downloadrockbox-c4d55fdffd85bbb383f1bd035a9d8e3f9d0109da.tar.gz
rockbox-c4d55fdffd85bbb383f1bd035a9d8e3f9d0109da.tar.bz2
rockbox-c4d55fdffd85bbb383f1bd035a9d8e3f9d0109da.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl10
1 files 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;