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