From: Sandro Santilli Date: Thu, 3 Mar 2016 08:40:22 +0000 (+0000) Subject: Always remove any previously existing dist dir on ./make_dist.sh X-Git-Tag: 2.3.0beta1~194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53de0e3e2ca71268c3d739ce5688b7fbca2129ae;p=postgis Always remove any previously existing dist dir on ./make_dist.sh Simplifies the code and makes it POSIX compliant. See #3488 git-svn-id: http://svn.osgeo.org/postgis/trunk@14737 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/make_dist.sh b/make_dist.sh index 5b3a3021f..cfc1e9162 100755 --- a/make_dist.sh +++ b/make_dist.sh @@ -121,7 +121,8 @@ if test "$version" = "dev"; then VREV=`cat "$outdir"/postgis_svn_revision.h | awk '{print $3}'` version="${VMAJ}.${VMIN}.${VMIC}-r${VREV}" newoutdir=postgis-${version} - mv -vT --backup=t "$outdir" "$newoutdir" + rm -rf ${newoutdir} + mv -v "$outdir" "$newoutdir" outdir=${newoutdir} fi