From 53de0e3e2ca71268c3d739ce5688b7fbca2129ae Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 3 Mar 2016 08:40:22 +0000 Subject: [PATCH] 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 --- make_dist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.40.0