All pastes #608914 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-08 15:49 UTC
rendered paste body
#!/usr/bin/ruby
skipping = 0

while !STDIN.eof() do
  aline = STDIN.readline
  if aline =~ /^Index:\s(\S+)$/ then
    filename = $1
    if filename =~ /\.build$/ then
      skipping = 1
    else 
      skipping = 0
    end
  end
  if skipping == 0
    print aline
  end
end