Mercurial > hg > octave-nkf > gnulib-hg
changeset 4126:e8caa337b4e1
(create-testdir): don't complain if destdir
couldn't be created, only if it doesn't exist.
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Wed, 01 Jan 2003 14:51:23 +0000 |
parents | 360b15357497 |
children | ae085df91d58 |
files | gnulib-tool |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2003-01-01 14:49:10 $' +cvsdatestamp='$Date: 2003-01-01 14:51:23 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` @@ -510,7 +510,9 @@ if test -z "$destdir"; then func_fatal_error "please specify --dir option" fi - mkdir "$destdir" || func_fatal_error "could not create destination directory" + mkdir "$destdir" + test -d "$destdir" \ + || func_fatal_error "could not create destination directory" func_create_testdir "$destdir" "$*" ;;