Sha256: 685358cbe904cacb9de6eb641957944b53f1edc90a5e09bbbbe8d33fc2bb376b
Contents?: true
Size: 708 Bytes
Versions: 17
Compression:
Stored size: 708 Bytes
Contents
require 'autobuild/timestamps' require 'autobuild/package' module Autobuild def self.import(spec, &proc) ImporterPackage.new(spec, &proc) end class ImporterPackage < Package attr_reader :exclude def initialize(*args) @exclude = [] super end def prepare super exclude = self.exclude.dup exclude << Regexp.new("^#{Regexp.quote(installstamp)}") if doc_dir exclude << Regexp.new("^#{doc_dir}") end Autobuild.source_tree(srcdir) do |pkg| pkg.exclude.concat exclude exclude.freeze end file installstamp => srcdir end end end
Version data entries
17 entries across 17 versions & 1 rubygems