Sha256: 906c356bb544675b7665412c1f2858cb2aac0fafdc8cec8aac2d5a93e897c922
Contents?: true
Size: 999 Bytes
Versions: 6
Compression:
Stored size: 999 Bytes
Contents
namespace :package do desc "Create a source tar archive" task :tar => [:clean] do if Pkg::Config.pre_tar_task Pkg::Util::RakeUtils.invoke_task(Pkg::Config.pre_tar_task) end Rake::Task["package:doc"].invoke if Pkg::Config.build_doc tar = Pkg::Tar.new # If the user has specified templates via config file, they will be ack'd # by the tar class. Otherwise, we load what we consider to be the "default" # set, which is default for historical purposes. # tar.templates ||= Dir[File.join(Pkg::Config.project_root, "ext", "**", "*.erb")].select { |i| i !~ /ext\/packaging|ext\/osx/ } # If the user has specified things to exclude via config file, they will be # honored by the tar class, but we also always exclude the packaging repo. # tar.excludes << "ext/packaging" tar.pkg! puts "Wrote #{`pwd`.strip}/pkg/#{Pkg::Config.project}-#{Pkg::Config.version}.tar.gz" end end namespace :pl do task :tar => ["package:tar"] end
Version data entries
6 entries across 6 versions & 1 rubygems