ruby-changes:32344
From: naruse <ko1@a...>
Date: Thu, 26 Dec 2013 00:43:44 +0900 (JST)
Subject: [ruby-changes:32344] naruse:r44423 (trunk): add release script on ftp.r-l.o
naruse 2013-12-26 00:43:36 +0900 (Thu, 26 Dec 2013) New Revision: 44423 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44423 Log: add release script on ftp.r-l.o Added files: trunk/tool/release.sh Index: tool/release.sh =================================================================== --- tool/release.sh (revision 0) +++ tool/release.sh (revision 44423) @@ -0,0 +1,35 @@ https://github.com/ruby/ruby/blob/trunk/tool/release.sh#L1 +#!/bin/sh + +RUBYDIR=/home/ftp/pub/ruby + +releases=`ls ruby-*|grep -o 'ruby-[0-9]\.[0-9]\.[0-9]\(-\(preview\|rc\|p\)[0-9]\{1,4\}\)\?'|uniq` + +# check files +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 +done + +# version directory +for r in $releases +do + xy=`echo $r|grep -o '[0-9]\.[0-9]'` + 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 +done -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/