mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 16:42:35 +00:00
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:
parent
c0039877bf
commit
53de0e3e2c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue