X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2Fimport%2Fimport_theme.pl;h=1737cb4b55367321ae4bb78d1c9edaf20b93d65d;hp=cea05c8070cd3d8a889cc3dfcc971e8bcfaae748;hb=e4fc79c07f5301ce2c7888e709ada0945b675c4f;hpb=eb746fb84d16b3b58dba950a9aa6d8bb82ebd3c6 diff --git a/icons/import/import_theme.pl b/icons/import/import_theme.pl index cea05c80..1737cb4b 100755 --- a/icons/import/import_theme.pl +++ b/icons/import/import_theme.pl @@ -10,8 +10,13 @@ # NOTE: Unless you are a Quassel developer and need to bump the icons we ship, you shouldn't # need to use this script! -# USAGE: ./import/import_theme.pl $systhemefolder $themename +# USAGE: ./import/import_theme.pl $systhemefolder $themename $parentFolderFileSuffix # Run from the icon/ directory. +# +# Examples: (being inside the icons folder) +# ./import/import_theme.pl ~/oxygen-icons oxygen +# ./import/import_theme.pl ~/breeze-icons/icons breeze ICONS +# ./import/import_theme.pl ~/breeze-icons/icons-dark breezedark ICONS use strict; use warnings; @@ -24,6 +29,7 @@ my $source = "../src"; my $themename = shift; $themename = $themename ? $themename : "oxygen"; my $qrcfile_kde = $themename . ".qrc"; +my $parentFolderFileSuffix = shift; my $whitelistfile = "import/whitelist-icons"; my $blacklistfile = "import/blacklisted-icons"; @@ -147,6 +153,10 @@ foreach my $icon (keys %req_icons) { # Copy license etc. system "cp $themefolder/AUTHORS $themefolder/CONTRIBUTING $themefolder/COPYING* $themefolder/index.theme $themename/"; +if($parentFolderFileSuffix) { + system "cp $themefolder/../AUTHORS*$parentFolderFileSuffix $themefolder/../CONTRIBUTING*$parentFolderFileSuffix $themefolder/../COPYING*$parentFolderFileSuffix $themename/"; +} + # Generate .qrc my @file_list; generate_qrc($themename, $qrcfile_kde, $extrafilecontent);