projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ccf33b
)
Create non-existing directories
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 1 Feb 2009 12:01:12 +0000
(13:01 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 1 Feb 2009 12:02:05 +0000
(13:02 +0100)
icons/import/import_oxygen.pl
patch
|
blob
|
history
diff --git
a/icons/import/import_oxygen.pl
b/icons/import/import_oxygen.pl
index
16c4116
..
8db7d66
100755
(executable)
--- a/
icons/import/import_oxygen.pl
+++ b/
icons/import/import_oxygen.pl
@@
-88,6
+88,8
@@
foreach my $size (keys %req_icons) {
opendir (BASEDIR, "$oxygen/$sizestr") or die "Could not open dir for size $size\n";
foreach my $cat (readdir BASEDIR) {
next if $cat eq '.' or $cat eq '..';
opendir (BASEDIR, "$oxygen/$sizestr") or die "Could not open dir for size $size\n";
foreach my $cat (readdir BASEDIR) {
next if $cat eq '.' or $cat eq '..';
+ system "mkdir -p $output/$sizestr/$cat" and die "Could not create category dir\n";
+ system "mkdir -p $output/scalable/$cat" and die "Could not create category dir\n";
opendir (CATDIR, "$oxygen/$sizestr/$cat") or die "Could not open category dir\n";
foreach my $icon (readdir CATDIR) {
$icon =~ s/\.png$//;
opendir (CATDIR, "$oxygen/$sizestr/$cat") or die "Could not open category dir\n";
foreach my $icon (readdir CATDIR) {
$icon =~ s/\.png$//;
@@
-95,6
+97,7
@@
foreach my $size (keys %req_icons) {
$scalables{"$cat/$icon"} = 1;
system "cp -a $oxygen/$sizestr/$cat/$icon.png $output/$sizestr/$cat"
and die "Error while copying file $sizestr/$cat/$icon.png\n";
$scalables{"$cat/$icon"} = 1;
system "cp -a $oxygen/$sizestr/$cat/$icon.png $output/$sizestr/$cat"
and die "Error while copying file $sizestr/$cat/$icon.png\n";
+ # print "Copy: $oxygen/$sizestr/$cat/$icon.png\n";
delete $req_icons{$size}{$icon};
}
closedir CATDIR;
delete $req_icons{$size}{$icon};
}
closedir CATDIR;