Sha256: 04e0aef56cbf24b2f8ce7472d54f75bf0619bd11c48fd8db814b207298893383
Contents?: true
Size: 652 Bytes
Versions: 8
Compression:
Stored size: 652 Bytes
Contents
#-- # Copyright protects this work. # See LICENSE file for details. #++ require 'rake/clean' require 'yaml' INDEX = YAML.load_file('index.yaml') desc 'generate PNGs for tango icons from SVG sources' task :default INDEX.values.grep(/tango-icon-theme/).each do |dst| if dst =~ /(\d+)x\1/ size = $1 src = $` + 'scalable' + $'.ext('.svg') file dst do mkdir_p File.dirname(dst) sh 'inkscape', '-e', dst, '-h', size, src # ensure sources are in repository so everything # works the next time this rake task is run sh 'git', 'add', src, dst end CLOBBER.include dst task :default => dst end end
Version data entries
8 entries across 8 versions & 1 rubygems