diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 11:24:50 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 11:24:50 +0000 |
| commit | 1bbc1e11c5153c45a2e6cbf6247cc579746be077 (patch) | |
| tree | 51e92024c58210b3e1a8a7f259b4549f690c1e6b | |
| parent | e01db0fbe476a569bf241128b74436ccf3ac2d8b (diff) | |
| download | ruby-1bbc1e11c5153c45a2e6cbf6247cc579746be077.tar.gz ruby-1bbc1e11c5153c45a2e6cbf6247cc579746be077.tar.xz ruby-1bbc1e11c5153c45a2e6cbf6247cc579746be077.zip | |
* tool/make-snapshot: argument check, and cleanup exported directory.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | tool/make-snapshot | 5 |
2 files changed, 9 insertions, 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. diff --git a/tool/make-snapshot b/tool/make-snapshot index 957c3e8b4..b19741de7 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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 |
