Sha256: 13a98131fc5fcc1fd25c745ea99995b906460411247de123ada5ac602c95495f

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

#!/usr/bin/ruby

base_dir = File.join(File.dirname(__FILE__), "..")
glob_pattern = File.join("**", "*")
exclude_patterns = [
  /^pkg/,
]

Dir.chdir(base_dir)
files = Dir.glob(glob_pattern).delete_if do |fname|
  File.directory?(fname) or
  exclude_patterns.find do |pattern|
    pattern =~ fname
  end
end
manifest = File.new("Manifest.txt", "w")
manifest.puts files.sort.join("\n")
manifest.close

puts "Manifest.txt updated"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
patternmatching-0.1.0 scripts/makemanifest.rb
patternmatching-0.1.2 scripts/makemanifest.rb
patternmatching-0.1.1 scripts/makemanifest.rb
patternmatching-0.1.3 scripts/makemanifest.rb