[前][次][番号順一覧][スレッド一覧]

ruby-changes:36476

From: nobu <ko1@a...>
Date: Tue, 25 Nov 2014 13:38:06 +0900 (JST)
Subject: [ruby-changes:36476] nobu:r48558 (trunk): common.mk: remove old gems

nobu	2014-11-25 13:37:58 +0900 (Tue, 25 Nov 2014)

  New Revision: 48558

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48558

  Log:
    common.mk: remove old gems
    
    * common.mk (update-gems): remove old version gems after
      successfully downloaded.

  Modified files:
    trunk/common.mk
Index: common.mk
===================================================================
--- common.mk	(revision 48557)
+++ common.mk	(revision 48558)
@@ -893,8 +893,10 @@ update-gems: PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L893
 	$(Q) $(RUNRUBY) -C "$(srcdir)/gems" \
 	    -I../tool -rdownloader -answ \
 	    -e 'gem, ver = *$$F' \
+	    -e 'old = Dir.glob("#{gem}-*.gem")' \
 	    -e 'gem = "#{gem}-#{ver}.gem"' \
-	    -e 'Downloader::RubyGems.download(gem, nil, nil)' \
+	    -e 'Downloader::RubyGems.download(gem, nil, nil) and' \
+	    -e 'File.unlink(*(old-[gem]))' \
 	    bundled_gems
 
 UPDATE_LIBRARIES = no

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]