From 1bbc1e11c5153c45a2e6cbf6247cc579746be077 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 25 Dec 2007 11:24:50 +0000 Subject: * 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 --- tool/make-snapshot | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tool') 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 -- cgit