X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2Fimport%2Fimport_oxygen.pl;h=c6fb8177327f67bb5ad289b791afa665c56b94a7;hp=c6132d01be76261bb6d9d6c7b83cc087a4426c3e;hb=2ac71ab56f56ceeebe572f7e656b9ea7dd1c88d5;hpb=695758015a80eb8c158a9ac4c0f1c0b547e70df3 diff --git a/icons/import/import_oxygen.pl b/icons/import/import_oxygen.pl index c6132d01..c6fb8177 100755 --- a/icons/import/import_oxygen.pl +++ b/icons/import/import_oxygen.pl @@ -72,8 +72,6 @@ foreach my $sizestr (readdir BASEDIR) { opendir (SIZEDIR, "$oxygen/$sizestr") or die "Could not open dir $sizestr\n"; foreach my $cat (readdir SIZEDIR) { 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$//; @@ -105,13 +103,13 @@ foreach my $icon (keys %req_icons) { print "Warning: Missing icon $icon\n"; } +# Copy license etc. +system "cp $oxygen/AUTHORS $oxygen/CONTRIBUTING $oxygen/COPYING $oxygen/index.theme $output/"; + # Generate .qrc my @file_list; generate_qrc($output, $qrcfile_kde); -# Copy license etc. -system "cp $oxygen/AUTHORS $oxygen/CONTRIBUTING $oxygen/COPYING $oxygen/index.theme $output/"; - print "Done.\n"; ######################################################################################## @@ -135,7 +133,7 @@ sub generate_qrc { } sub push_icon_path { - return unless /\.png$/; + return unless /\.png$/ or /^index.theme$/; push @file_list, " $File::Find::name"; }