💾 Archived View for gemini.ctrl-c.club › ~de_alchmst › data › touch-files.rb.txt captured on 2024-08-18 at 17:26:58.

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
}