Author: donaldp
Date: Sun Oct  7 05:20:03 2012
New Revision: 1395215

URL: http://svn.apache.org/viewvc?rev=1395215&view=rev
Log:
Remove the install and uninstall rake tasks as bundler is the way that buildr 
should be installed these days

Modified:
    buildr/trunk/Rakefile
    buildr/trunk/rakelib/package.rake

Modified: buildr/trunk/Rakefile
URL: 
http://svn.apache.org/viewvc/buildr/trunk/Rakefile?rev=1395215&r1=1395214&r2=1395215&view=diff
==============================================================================
--- buildr/trunk/Rakefile (original)
+++ buildr/trunk/Rakefile Sun Oct  7 05:20:03 2012
@@ -37,11 +37,5 @@ def spec(platform = RUBY_PLATFORM[/java/
   @specs[platform]
 end
 
-# Tell us if we need sudo for various commands.
-def sudo_needed?
-  RbConfig::CONFIG['host_os'] !~ 
/windows|cygwin|bccwin|cygwin|djgpp|mingw|mswin|wince/i && !ENV['GEM_HOME']
-end
-
-
 desc 'Clean up all temporary directories used for running tests, creating 
documentation, packaging, etc.'
 task :clobber

Modified: buildr/trunk/rakelib/package.rake
URL: 
http://svn.apache.org/viewvc/buildr/trunk/rakelib/package.rake?rev=1395215&r1=1395214&r2=1395215&view=diff
==============================================================================
--- buildr/trunk/rakelib/package.rake (original)
+++ buildr/trunk/rakelib/package.rake Sun Oct  7 05:20:03 2012
@@ -13,34 +13,13 @@
 # License for the specific language governing permissions and limitations under
 # the License.
 
-
 require 'rubygems/package_task'
 
-
 package = Gem::PackageTask.new(spec) do |pkg|
   pkg.need_tar = true
   pkg.need_zip = true
 end
 
-desc "Install Buildr from source"
-task :install=>["#{package.package_dir}/#{package.gem_spec.file_name}"] do 
|task|
-  print "Installing #{spec.name} ... "
-  args = RbConfig::CONFIG['ruby_install_name'], '-S', 'gem', 'install', 
"#{package.package_dir}/#{package.gem_spec.file_name}"
-  args.unshift('sudo') if sudo_needed?
-  sh *args
-  puts "[x] Installed Buildr #{spec.version}"
-end
-
-desc "Uninstall previous rake install"
-task :uninstall do |task|
-  puts "Uninstalling #{spec.name} ... "
-  args = RbConfig::CONFIG['ruby_install_name'], '-S', 'gem', 'uninstall', 
spec.name, '--version', spec.version.to_s
-  args.unshift('sudo') if sudo_needed?
-  sh *args
-  puts "[x] Uninstalled Buildr #{spec.version}"
-end
-
-
 desc "Compile Java libraries used by Buildr"
 task :compile do
   puts "Compiling Java libraries ..."
@@ -57,7 +36,6 @@ file Gem::PackageTask.new(spec).package_
   Gem::PackageTask.new(s) { |task| }
 end
 
-
 desc "Upload snapshot packages over to people.apache.org"
 task :snapshot=>[:package] do
   rm_rf '_snapshot' # Always start with empty directory


Reply via email to