# install.rb: Install script for ruby files. # $Id: uninstall.rb,v 1.1.1.1 2003/04/24 18:23:11 komatsu Exp $ # # Copyright (C) 2002 Hiroyuki Komatsu # All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # # You can redistribute it and/or modify it under the terms of # the GNU General Public License version 2. # require 'rbconfig' uninstall_path = (ENV['RUBY_SITEDIR'] or Config::CONFIG["sitedir"]) uninstall_command = 'rm -rf' targets = ARGV targets.each {|target| $stderr.puts "#{uninstall_command} #{uninstall_path}/#{target}" `#{uninstall_command} #{uninstall_path}/#{target}` }