1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/release.sh: make symbolic links.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2013-12-25 16:10:21 +00:00
parent da8b79b4c4
commit 52668960c5
2 changed files with 19 additions and 15 deletions

View file

@ -1,3 +1,7 @@
Thu Dec 26 01:09:57 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/release.sh: make symbolic links.
Thu Dec 26 00:45:33 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/make-snapshot: support new version scheme.

View file

@ -1,6 +1,7 @@
#!/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]\.[0-9]\.[0-9]\(-\(preview\|rc\|p\)[0-9]\
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
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