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

Version Path
autobuild-1.5.22 lib/autobuild/packages/import.rb
autobuild-1.5.21 lib/autobuild/packages/import.rb
autobuild-1.5.21.rc1 lib/autobuild/packages/import.rb
autobuild-1.5.20 lib/autobuild/packages/import.rb
autobuild-1.5.19 lib/autobuild/packages/import.rb
autobuild-1.5.18 lib/autobuild/packages/import.rb
autobuild-1.5.17 lib/autobuild/packages/import.rb
autobuild-1.5.16 lib/autobuild/packages/import.rb
autobuild-1.5.15 lib/autobuild/packages/import.rb
autobuild-1.5.14 lib/autobuild/packages/import.rb
autobuild-1.5.13 lib/autobuild/packages/import.rb
autobuild-1.5.12 lib/autobuild/packages/import.rb
autobuild-1.5.11 lib/autobuild/packages/import.rb
autobuild-1.5.10 lib/autobuild/packages/import.rb
autobuild-1.5.9 lib/autobuild/packages/import.rb
autobuild-1.5.8 lib/autobuild/packages/import.rb
autobuild-1.5.7 lib/autobuild/packages/import.rb