From b71fb8fed8fcf9ed7e6dae6ea92998cb965d8266 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 1 Mar 2016 15:46:14 +0000 Subject: [PATCH] Backup final (reversioned) output dirs if already existing 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_dist.sh b/make_dist.sh index b531b3d07..dc11f21ef 100755 --- a/make_dist.sh +++ b/make_dist.sh @@ -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 -- 2.40.0