mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/make-snapshot: argument check, and cleanup exported directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7847c1b860
commit
a99c3a6e9d
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Dec 25 20:24:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/make-snapshot: argument check, and cleanup exported directory.
|
||||
|
||||
Tue Dec 25 20:07:13 2007 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* tool/make-snapshot: more portable.
|
||||
|
|
|
@ -6,6 +6,10 @@ export LC_ALL LANG
|
|||
: ${VPATH=include/ruby} ${YACC=bison} ${BASERUBY=ruby} ${RUBY=ruby} ${MV=mv}
|
||||
export VPATH YACC BASERUBY RUBY MV
|
||||
|
||||
if [ ! "$1" ]; then
|
||||
echo usage: `basename $0` new-directory-to-save 1>&2
|
||||
exit 1
|
||||
fi
|
||||
[ -d "$1" ] || mkdir "$1" || exit 1
|
||||
dest=`cd "$1"; pwd`
|
||||
|
||||
|
@ -29,3 +33,4 @@ for cmd in "bzip tarball.tar.bz2 tar cjf" "gzip tarball.tar.gz tar czf" "zip arc
|
|||
echo " failed"
|
||||
fi
|
||||
done
|
||||
exec rm -fr $v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue