Sha256: 1f6d0396cfe31e82cbb4cd3e989e9daed34374e8d4ebc7eae05677c1c6d3c396

Contents?: true

Size: 434 Bytes

Versions: 22

Compression:

Stored size: 434 Bytes

Contents

#!/usr/bin/ruby

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

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

22 entries across 22 versions & 6 rubygems

Version Path
sgl-0.4.0 scripts/makemanifest.rb
sgl-1.0.0 scripts/makemanifest.rb