From ab936043651396b3f2361cf5c515cf5d1a0a69d0 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 25 Dec 2013 16:24:53 +0000 Subject: [PATCH] * tool/release.sh: fixed small bugs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tool/release.sh b/tool/release.sh index dfddd21e8e..e43571be36 100755 --- a/tool/release.sh +++ b/tool/release.sh @@ -23,13 +23,16 @@ done for r in $releases do xy=`echo $r|grep -o '[0-9]\.[0-9]'` + preview=`echo $r|grep -o '-\(preview\|rc\)'` dir="${RUBYDIR}/$xy" echo "$dir" mkdir -p $dir - for ext in (.tar.gz .tar.bz2 .zip) + for ext in $EXTS 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 + if [ x$preview = x ];then + ln -s $xy/$r$ext ${RUBYDIR}/ruby-$xy-stable$ext + fi done done