Sha256: 59e11b11e9c37666eb26dd13e4ff4548e9bae1a49e66ec45c6e8af92048c819a

Contents?: true

Size: 712 Bytes

Versions: 89

Compression:

Stored size: 712 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("^#{Regexp.quote(doc_dir)}")
            end

            source_tree(srcdir) do |pkg|
		pkg.exclude.concat exclude
		exclude.freeze
	    end

            file installstamp => srcdir
        end
    end
end


Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
autobuild-1.12.3 lib/autobuild/packages/import.rb
autobuild-1.12.1 lib/autobuild/packages/import.rb
autobuild-1.12.0 lib/autobuild/packages/import.rb
autobuild-1.11.2 lib/autobuild/packages/import.rb
autobuild-1.11.1 lib/autobuild/packages/import.rb
autobuild-1.9.6 lib/autobuild/packages/import.rb
autobuild-1.11.0 lib/autobuild/packages/import.rb
autobuild-1.11.0.rc1 lib/autobuild/packages/import.rb
autobuild-1.10.1 lib/autobuild/packages/import.rb
autobuild-1.10.0 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc22 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc21 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc20 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc19 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc18 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc17 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc16 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc15 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc14 lib/autobuild/packages/import.rb
autobuild-1.10.0.rc13 lib/autobuild/packages/import.rb