Sha256: 8445a2d1af35b0fcbd4c9a3e30dde179556ff0f165c89e1dcae5c29655e4b70b

Contents?: true

Size: 724 Bytes

Versions: 9

Compression:

Stored size: 724 Bytes

Contents

require 'autobuild/timestamps'
require 'autobuild/package'

module Autobuild
    def self.import(spec, &proc)
        ImporterPackage.new(spec, &proc)
    end
    
    class ImporterPackage < Package
        def installstamp
            "#{srcdir}/#{STAMPFILE}"
        end
	
	attr_reader :exclude

        def initialize(*args)
	    @exclude = []
            super
        end

        def prepare
            super

	    exclude << Regexp.new("^#{Regexp.quote(installstamp)}")

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

            file installstamp => srcdir do 
                Autobuild.touch_stamp installstamp
            end
        end
    end
end


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
autobuild-1.4.4 lib/autobuild/packages/import.rb
autobuild-1.4.3 lib/autobuild/packages/import.rb
autobuild-1.4.2 lib/autobuild/packages/import.rb
autobuild-1.4.1 lib/autobuild/packages/import.rb
autobuild-1.4.0 lib/autobuild/packages/import.rb
autobuild-1.3.3 lib/autobuild/packages/import.rb
autobuild-1.3.2 lib/autobuild/packages/import.rb
autobuild-1.3.1 lib/autobuild/packages/import.rb
autobuild-1.3.0 lib/autobuild/packages/import.rb