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
This commit is contained in:
Sandro Santilli 2016-03-03 08:40:22 +00:00
parent c0039877bf
commit 53de0e3e2c

View file

@ -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