use ruby for legacy binaries because Rubygems wraps everything in rubygems regardless of language
This commit is contained in:
parent
d7e519dc85
commit
ca2666cbab
11
bin/mm-build
11
bin/mm-build
|
@ -1,2 +1,9 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/env middleman build $@
|
||||
#!/usr/bin/env ruby
|
||||
require "rubygems"
|
||||
|
||||
libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
|
||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||
|
||||
require 'middleman'
|
||||
args = ARGV.dup.unshift("build")
|
||||
Middleman::CLI.start(args)
|
11
bin/mm-init
11
bin/mm-init
|
@ -1,2 +1,9 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/env middleman init $@
|
||||
#!/usr/bin/env ruby
|
||||
require "rubygems"
|
||||
|
||||
libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
|
||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||
|
||||
require 'middleman'
|
||||
args = ARGV.dup.unshift("init")
|
||||
Middleman::CLI.start(args)
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/env middleman server $@
|
||||
#!/usr/bin/env ruby
|
||||
require "rubygems"
|
||||
|
||||
libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
|
||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
||||
|
||||
require 'middleman'
|
||||
args = ARGV.dup.unshift("server")
|
||||
Middleman::CLI.start(args)
|
Loading…
Reference in a new issue