Skip to content

Instantly share code, notes, and snippets.

@pokutuna
Created September 29, 2011 01:38
Show Gist options
  • Save pokutuna/1249776 to your computer and use it in GitHub Desktop.
Save pokutuna/1249776 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
`nkf -w --overwrite *.c`
sources = Dir.glob('*.c')
sources.each do |s|
puts "--- #{s} ---"
puts `gcc #{s} -o #{s.gsub(/\.c$/, '')}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment