use fullname for new bin, add bash cmds for old names

This commit is contained in:
Thomas Reynolds 2011-07-27 01:45:57 -07:00
parent 2634c4156f
commit fcf9764512
7 changed files with 12 additions and 7 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env ruby
require "rubygems"
libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")

2
bin/mm-build Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
/usr/bin/env middleman build $@

2
bin/mm-init Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
/usr/bin/env middleman init $@

2
bin/mm-server Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
/usr/bin/env middleman server $@

View file

@ -3,13 +3,13 @@ require 'middleman/cli'
Given /^a built test app$/ do
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm build"))
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman build"))
`cd #{target} && #{build_cmd}`
end
Given /^a built test app with flags "([^"]*)"$/ do |flags|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm build"))
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman build"))
`cd #{target} && #{build_cmd} #{flags}`
end

View file

@ -2,7 +2,7 @@ require 'fileutils'
Given /^generated directory at "([^\"]*)"$/ do |dirname|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", dirname)
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm init"))
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman init"))
`cd #{File.dirname(target)} && #{init_cmd} #{File.basename(target)}`
end

View file

@ -9,9 +9,9 @@
# To accomplish its goals, Middleman supports provides access to:
#
#### Command-line tool:
# * **mm init**: A tool for creating to new static sites.
# * **mm server**: A tool for rapidly developing your static site.
# * **mm build**: A tool for exporting your site into optimized HTML, CSS & JS.
# * **middleman init**: A tool for creating to new static sites.
# * **middleman server**: A tool for rapidly developing your static site.
# * **middleman build**: A tool for exporting your site into optimized HTML, CSS & JS.
#
#### Tons of templating languages including:
# * ERB (.erb)