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> Thu Dec 26 00:45:33 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/make-snapshot: support new version scheme. * tool/make-snapshot: support new version scheme.

View file

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
RUBYDIR=/home/ftp/pub/ruby 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` 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 for r in $releases
do do
echo "checking files for $r..." echo "checking files for $r..."
if ! [ -f $r.tar.gz ];then for ext in $EXTS
echo "ERROR: $r.tar.gz not found" do
exit 1 if ! [ -f $r$ext ];then
elif ! [ -f $r.tar.bz2 ];then echo "ERROR: $r$ext not found"
echo "ERROR: $r.tar.bz2 not found" exit 1
exit 1 fi
elif ! [ -f $r.zip ];then done
echo "ERROR: $r.zip not found" echo "files are ok"
exit 1
else
echo "files are ok"
fi
done done
# version directory # version directory
@ -29,7 +26,10 @@ do
dir="${RUBYDIR}/$xy" dir="${RUBYDIR}/$xy"
echo "$dir" echo "$dir"
mkdir -p $dir mkdir -p $dir
cp $r.tar.gz $dir/$r.tar.gz for ext in (.tar.gz .tar.bz2 .zip)
cp $r.tar.bz2 $dir/$r.tar.bz2 do
cp $r.zip $dir/$r.zip 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 done