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

ruby-changes:32349

From: usa <ko1@a...>
Date: Thu, 26 Dec 2013 01:10:25 +0900 (JST)
Subject: [ruby-changes:32349] usa:r44428 (trunk): * tool/release.sh: make symbolic links.

usa	2013-12-26 01:10:21 +0900 (Thu, 26 Dec 2013)

  New Revision: 44428

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

  Log:
    * tool/release.sh: make symbolic links.

  Modified files:
    trunk/ChangeLog
    trunk/tool/release.sh
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44427)
+++ ChangeLog	(revision 44428)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Dec 26 01:09:57 2013  NAKAMURA Usaku  <usa@r...>
+
+	* tool/release.sh: make symbolic links.
+
 Thu Dec 26 00:45:33 2013  NAKAMURA Usaku  <usa@r...>
 
 	* tool/make-snapshot: support new version scheme.
Index: tool/release.sh
===================================================================
--- tool/release.sh	(revision 44427)
+++ tool/release.sh	(revision 44428)
@@ -1,6 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/release.sh#L1
 #!/bin/sh
 
 RUBYDIR=/home/ftp/pub/ruby
+EXTS=.tar.gz .tar.bz2 .zip
 
 releases=`ls ruby-*|grep -o 'ruby-[0-9]\.[0-9]\.[0-9]\(-\(preview\|rc\|p\)[0-9]\{1,4\}\)\?'|uniq`
 
@@ -8,18 +9,14 @@ releases=`ls ruby-*|grep -o 'ruby-[0-9]\ https://github.com/ruby/ruby/blob/trunk/tool/release.sh#L9
 for r in $releases
 do
   echo "checking files for $r..."
-  if ! [ -f $r.tar.gz ];then
-    echo "ERROR: $r.tar.gz not found"
-    exit 1
-  elif ! [ -f $r.tar.bz2 ];then
-    echo "ERROR: $r.tar.bz2 not found"
-    exit 1
-  elif ! [ -f $r.zip ];then
-    echo "ERROR: $r.zip not found"
-    exit 1
-  else
-    echo "files are ok"
-  fi
+  for ext in $EXTS
+  do
+    if ! [ -f $r$ext ];then
+      echo "ERROR: $r$ext not found"
+      exit 1
+    fi
+  done
+  echo "files are ok"
 done
 
 # version directory
@@ -29,7 +26,10 @@ do https://github.com/ruby/ruby/blob/trunk/tool/release.sh#L26
   dir="${RUBYDIR}/$xy"
   echo "$dir"
   mkdir -p $dir
-  cp $r.tar.gz $dir/$r.tar.gz
-  cp $r.tar.bz2 $dir/$r.tar.bz2
-  cp $r.zip $dir/$r.zip
+  for ext in (.tar.gz .tar.bz2 .zip)
+  do
+    cp $r$ext $dir/$r$ext
+    ln -s $xy/$r$ext ${RUBYDIR}/$r$ext
+    ln -s $xy/$r$ext ${RUBYDIR}/ruby-$xy-stable$ext
+  done
 done

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

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