Sha256: fadb179816a329271859972ac4e24cce9a5174f500c519c1f6ea7aaee17e7723

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 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
        def initialize(target)
            super
            source_tree srcdir, /^#{Regexp.quote(installstamp)}/
            file installstamp => srcdir do 
                touch_stamp installstamp
            end
        end
    end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
autobuild-0.6.2 lib/autobuild/packages/import.rb
autobuild-0.6.5 lib/autobuild/packages/import.rb
autobuild-0.6.3 lib/autobuild/packages/import.rb
autobuild-0.6.4 lib/autobuild/packages/import.rb
autobuild-0.6.6 lib/autobuild/packages/import.rb
autobuild-0.6.7 lib/autobuild/packages/import.rb
autobuild-1.0 lib/autobuild/packages/import.rb
autobuild-1.0.1 lib/autobuild/packages/import.rb