Backup final (reversioned) output dirs if already existing
authorSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2016 15:46:14 +0000 (15:46 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2016 15:46:14 +0000 (15:46 +0000)
Avoids creating tarball with a directory containing "postgis-dev"
subdirectory (not easy to spot)

git-svn-id: http://svn.osgeo.org/postgis/trunk@14730 b70326c6-7e19-0410-871a-916f4a2858ee

make_dist.sh

index b531b3d0788b24a6faa91106474f748e8071843a..dc11f21efda039023c4f104619aeaa150721c722 100755 (executable)
@@ -90,7 +90,7 @@ if test "$tag" = "trunk"; then
   VREV=`cat "$outdir"/postgis_svn_revision.h | awk '{print $3}'`
   version="${VMAJ}.${VMIN}.${VMIC}-r${VREV}"
   newoutdir=postgis-${version}
-  mv -vi "$outdir" "$newoutdir"
+  mv -vT --backup=t "$outdir" "$newoutdir"
   outdir=${newoutdir}
 fi