minicomic-backend/minicomic-backend.rb

27 lines
405 B
Ruby
Raw Normal View History

2009-04-01 01:00:19 +00:00
#!/usr/bin/ruby
require 'yaml'
require 'time'
2010-01-05 03:55:50 +00:00
Dir[File.dirname(__FILE__) + "/classes/*.rb"].each do |file|
require file
2009-04-01 01:00:19 +00:00
end
any_rebuilt = false
any_rsync = false
2009-04-01 01:12:01 +00:00
if !ARGV[0]
puts "Usage: #{File.basename(__FILE__)} <path to YAML file>"
exit 0
end
2009-04-01 01:12:40 +00:00
if !File.exists?(ARGV[0])
puts "#{ARGV[0]} doesn't exist!"
exit 1
end
2009-04-01 01:00:19 +00:00
if global['use_git']
system("git add .")
system("git commit -a")
end