💾 Archived View for gemini.ctrl-c.club › ~de_alchmst › data › touch-files.rb.txt captured on 2024-07-08 at 23:52:14.

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

#!/usr/bin/ruby

# this file will touch files that would be created by 'gen-from-templates.rb'

SELF_DIR = File.dirname(__FILE__)

Dir.children(SELF_DIR).each { |child|
  if child.match /\.template$/
    f = File.open(SELF_DIR + "/" + child, "r") 
    `touch #{f.readline}`
    f.close
  end
}