#!/usr/bin/env ruby require 'rubygems' begin require 'gaptool-server' root = Gem.loaded_specs['gaptool-server'].full_gem_path rescue LoadError root = File.realpath(File.join(File.dirname(__FILE__), '..')) end Dir.chdir(root) exec "racksh #{ARGV.join(' ')}"