Files
RubyMotion/bin/motion
Eloy Durán fea2150aae [Command] Deprecate Motion::Project::Command, long live Motion::Command!
Some of our commands are not related to ‘a project’ at all, so the
namespacing felt incorrect, but this also helps greatly for the
transition process. I.e. old command plugins will inherit from the
deprecated class and still work and we get to re-use the `Command` name.
2014-01-20 17:56:14 +01:00

15 lines
527 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/command'
Motion::Command.run(ARGV)