8000 * tool/release.sh: make symbolic links. · eagletmt/ruby@5266896 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5266896

Browse files
committed
* tool/release.sh: make symbolic links.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent da8b79b commit 5266896

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Thu Dec 26 01:09:57 2013 NAKAMURA Usaku <usa@ruby-lang.org>
2+
3+
* tool/release.sh: make symbolic links.
4+
15
Thu Dec 26 00:45:33 2013 NAKAMURA Usaku <usa@ruby-lang.org>
26

37
* tool/make-snapshot: support new version scheme.

tool/release.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
#!/bin/sh
22

33
RUBYDIR=/home/ftp/pub/ruby
4+
EXTS=.tar.gz .tar.bz2 .zip
45

56
releases=`ls ruby-*|grep -o 'ruby-[0-9]\.[0-9]\.[0-9]\(-\(preview\|rc\|p\)[0-9]\{1,4\}\)\?'|uniq`
67

78
# check files
89
for r in $releases
910
do
1011
echo "checking files for $r..."
11-
if ! [ -f $r.tar.gz ];then
12-
echo "ERROR: $r.tar.gz not found"
13-
exit 1
14-
elif ! [ -f $r.tar.bz2 ];then
15-
echo "ERROR: $r.tar.bz2 not found"
16-
exit 1
17-
elif ! [ -f $r.zip ];then
18-
echo "ERROR: $r.zip not found"
19-
exit 1
20-
else
21-
echo "files are ok"
22-
fi
12+
for ext in $EXTS
13+
do
14+
if ! [ -f $r$ext ];then
15+
echo "ERROR: $r$ext not found"
16+
exit 1
17+
fi
18+
done
19+
echo "files are ok"
2320
done
2421

2522
# version directory
@@ -29,7 +26,10 @@ do
2926
dir="${RUBYDIR}/$xy"
3027
echo "$dir"
3128
mkdir -p $dir
32-
cp $r.tar.gz $dir/$r.tar.gz
33-
cp $r.tar.bz2 $dir/$r.tar.bz2
34-
cp $r.zip $dir/$r.zip
29+
for ext in (.tar.gz .tar.bz2 .zip)
30+
do
31+
cp $r$ext $dir/$r$ext
32+
ln -s $xy/$r$ext ${RUBYDIR}/$r$ext
33+
ln -s $xy/$r$ext ${RUBYDIR}/ruby-$xy-stable$ext
34+
done
3535
done

0 commit comments

Comments
 (0)
0