]> granicus.if.org Git - postgis/commitdiff
Always remove any previously existing dist dir on ./make_dist.sh
authorSandro Santilli <strk@keybit.net>
Thu, 3 Mar 2016 08:40:22 +0000 (08:40 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 3 Mar 2016 08:40:22 +0000 (08:40 +0000)
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

index 5b3a3021fd61fc386400e5444c05f77174bc70c6..cfc1e916276112095111fb28a31dc3bc087f8728 100755 (executable)
@@ -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