Sha256: a1d7c5d4eb14b66e84d57833070bf214db6b46a3fea90161adc426dc4ff0375a

Contents?: true

Size: 846 Bytes

Versions: 25

Compression:

Stored size: 846 Bytes

Contents

#! /usr/bin/env ruby
#
# Copyright (c) 2001 by Jim Menard <jimm@io.com>
#
# Released under the same license as Ruby. See
# http://www.ruby-lang.org/en/LICENSE.txt.
#
# This script builds the Manifest file. It can be run stand-alone, but
# is normally used from within release.rb.
#

def recurseDirectory(io, dirName, indentLevel)
    Dir.entries(dirName).sort.each { | f |
	next if f =~ /^\.\.?/
	fileName = "#{dirName}/#{f}"
	fileName.sub!(/^\.\//, '')
	if File.directory?(fileName)
	    io.puts "\t" * indentLevel + fileName + '/'
	    recurseDirectory(io, fileName, indentLevel + 1)
	else
	    io.puts "\t" * indentLevel + f
	end
    }
end

def generateManifest
    io = nil
    begin
	io = File.open('Manifest', 'w')
	recurseDirectory(io, '.', 0)
    ensure
	io.close() if io
    end
end

if $0 == __FILE__
    generateManifest()
end



    

Version data entries

25 entries across 23 versions & 3 rubygems

Version Path
rock-qtbindings-4.8.6.5 examples/ruboids/generateManifest.rb
qtbindings-4.8.6.5 examples/ruboids/generateManifest.rb
qtbindings-4.8.6.4 examples/ruboids/generateManifest.rb
qtbindings-4.8.6.2 examples/ruboids/generateManifest.rb
qtbindings-4.8.6.1 examples/ruboids/generateManifest.rb
qtbindings-4.8.6.0 examples/ruboids/generateManifest.rb
qtbindings-4.8.6.0-x86-mingw32 examples/ruboids/generateManifest.rb
qtbindings-4.8.5.2 examples/ruboids/generateManifest.rb
qtbindings-4.8.5.2-x86-mingw32 examples/ruboids/generateManifest.rb
qtbindings-4.8.5.1 examples/ruboids/generateManifest.rb
qtbindings-4.8.5.0 examples/ruboids/generateManifest.rb
qtbindings-4.8.3.0-x86-mingw32 examples/ruboids/generateManifest.rb
qtbindings-4.8.3.0 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.4-x86-mingw32 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.4 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.3 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.2-x86-mingw32 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.2 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.1 examples/ruboids/generateManifest.rb
qtbindings-4.6.3.1-x86-mingw32 examples/ruboids/generateManifest.rb