[postgis-tickets] r14737 - Always remove any previously existing dist dir on ./make_dist.sh

Sandro Santilli strk at keybit.net
Thu Mar 3 00:40:23 PST 2016


Author: strk
Date: 2016-03-03 00:40:22 -0800 (Thu, 03 Mar 2016)
New Revision: 14737

Modified:
   trunk/make_dist.sh
Log:
Always remove any previously existing dist dir on ./make_dist.sh

Simplifies the code and makes it POSIX compliant.
See #3488

Modified: trunk/make_dist.sh
===================================================================
--- trunk/make_dist.sh	2016-03-03 03:09:18 UTC (rev 14736)
+++ trunk/make_dist.sh	2016-03-03 08:40:22 UTC (rev 14737)
@@ -121,7 +121,8 @@
   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
 



More information about the postgis-tickets mailing list