diff options
author | Jakub Steiner <jimmac@gmail.com> | 2009-08-25 22:29:38 +0200 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2009-08-25 22:29:38 +0200 |
commit | cd456177f814984561911651b945f7ce69f30ba3 (patch) | |
tree | 955b3dce54a70c8eb6d27ce0bd0836e736eb5523 | |
parent | 04e7fc0a97eb31e33faa276aa3190e97268ba4d1 (diff) | |
download | adwaita-icon-theme-cd456177f814984561911651b945f7ce69f30ba3.tar.gz |
copy template to the output directory
-rwxr-xr-x | create-icon-theme.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/create-icon-theme.rb b/create-icon-theme.rb new file mode 100755 index 000000000..70382af99 --- /dev/null +++ b/create-icon-theme.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby +require "fileutils" + +if (ARGV[0].nil?) #render all SVGs + puts "Usage: #{$0} [icon theme directory]" + exit +end + +THEME_NAME=ARGV[0] +THEME_COMMENT="#{THEME_NAME} Icon Theme" +OUTPUT="#{Dir.pwd}/output/#{THEME_NAME}" + +FileUtils.rm_rf OUTPUT +FileUtils.mkdir_p OUTPUT + +puts "Creating icon theme in #{OUTPUT}" +puts "Copying build files.." +FileUtils.cp_r Dir.glob("build/*"), OUTPUT |