2009-07-27 16:25:32 -07:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2009-09-29 10:10:47 -07:00
|
|
|
ENV['MM_ENV'] = "build"
|
|
|
|
|
2009-09-28 19:43:08 -07:00
|
|
|
# Require app
|
2009-09-29 10:10:47 -07:00
|
|
|
require File.join(File.dirname(__FILE__), "..", "lib", "middleman")
|
2009-10-08 11:24:19 -07:00
|
|
|
require 'middleman/builder'
|
|
|
|
|
2009-09-29 10:10:47 -07:00
|
|
|
Middleman::Base.init!
|
2009-10-08 11:24:19 -07:00
|
|
|
Middleman::Builder.init!
|
2009-09-29 10:10:47 -07:00
|
|
|
|
2009-10-08 10:49:23 -07:00
|
|
|
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))
|