Sha256: 3b41ef3da1568ec7bfbb99de9df464cd87dffa49ef5f838591ac582023ca1e4a
Contents?: true
Size: 1.06 KB
Versions: 15
Compression:
Stored size: 1.06 KB
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 rake file ### require 'rake/clean' require_relative './bin' directory 'bin' file File.join('bin', 'wxruby') => 'bin' do |t| File.open(t.name, 'w') { |f| f.puts WXRuby3::Bin.wxruby } File.chmod(0755, t.name) end namespace :wxruby do namespace :bin do task :build => ['wxruby:bin:check', File.join('bin', 'wxruby')] task :check do WXRuby3::Bin.binaries.each do |bin| if File.exist?(File.join('bin', bin)) content = IO.read(File.join('bin', bin)) rm_f(File.join('bin', bin)) unless content == WXRuby3::Bin.__send__(bin.gsub('.','_').to_sym) end end end end end CLOBBER.include File.join('bin', 'wxruby') if WXRuby3.config.windows? file File.join('bin', 'wxruby.bat') => ['bin'] do |t| File.open(t.name, 'w') { |f| f.puts WXRuby3::Bin.wxruby_bat } end Rake::Task['wxruby:bin:build'].enhance [File.join('bin', 'wxruby.bat')] CLOBBER.include File.join('bin', 'wxruby.bat') end
Version data entries
15 entries across 15 versions & 1 rubygems