[postgis-tickets] r14730 - Backup final (reversioned) output dirs if already existing
Sandro Santilli
strk at keybit.net
Tue Mar 1 07:46:15 PST 2016
Author: strk
Date: 2016-03-01 07:46:14 -0800 (Tue, 01 Mar 2016)
New Revision: 14730
Modified:
trunk/make_dist.sh
Log:
Backup final (reversioned) output dirs if already existing
Avoids creating tarball with a directory containing "postgis-dev"
subdirectory (not easy to spot)
Modified: trunk/make_dist.sh
===================================================================
--- trunk/make_dist.sh 2016-03-01 15:46:08 UTC (rev 14729)
+++ trunk/make_dist.sh 2016-03-01 15:46:14 UTC (rev 14730)
@@ -90,7 +90,7 @@
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
More information about the postgis-tickets
mailing list