mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-07 22:42:10 +08:00
18 lines
648 B
Ruby
Executable File
18 lines
648 B
Ruby
Executable File
#!/usr/bin/ruby
|
|
# Copyright (C) 2012, HipByte SPRL. All Rights Reserved.
|
|
#
|
|
# This file is subject to the terms and conditions of the End User License
|
|
# Agreement accompanying the package this file is a part of.
|
|
|
|
file = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
|
relative_libdir = File.expand_path('../../lib', file)
|
|
$motion_libdir = File.exist?(File.join(relative_libdir, 'motion')) ? relative_libdir : '/Library/RubyMotion/lib'
|
|
$:.unshift($motion_libdir)
|
|
|
|
require 'motion/project/command'
|
|
|
|
# TODO
|
|
# Dir.glob(File.join(ENV['HOME'], 'Library/RubyMotion/command', '*.rb')).each { |x| require x }
|
|
|
|
Motion::Project::Command.run(ARGV)
|