summaryrefslogtreecommitdiff
path: root/tool/release.sh
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 16:24:53 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 16:24:53 +0000
commitab936043651396b3f2361cf5c515cf5d1a0a69d0 (patch)
tree8f2a8cf4bc15c73183617204f0146b2160281223 /tool/release.sh
parent3da2f01e3026add3321e8e8adb77be85da501172 (diff)
* tool/release.sh: fixed small bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/release.sh')
-rwxr-xr-xtool/release.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tool/release.sh b/tool/release.sh
index dfddd21..e43571b 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