diff options
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 5 |
1 files changed, 5 insertions, 0 deletions
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 |