From 34f59c47a0d12a33b8e6f2ed0522765f1bac6947 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Tue, 19 Jun 2018 05:58:51 +0000 Subject: [PATCH] Ensure a unique cp dir name by including the SVN revision in the dir name. --- tools/quartus/run_qcomp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/quartus/run_qcomp b/tools/quartus/run_qcomp index 636e2237f2..e079953be3 100755 --- a/tools/quartus/run_qcomp +++ b/tools/quartus/run_qcomp @@ -163,8 +163,10 @@ do fmax=`echo $fmax_str | cut -f1 -d"." | sed 's/[^0-9]//g'` # . Report fMax unb_info $0 "fMax of ${CLK}: ${fmax} MHz" - # . Copy quartus output dir preserving the meta file information, add fMax portfix - cp -rp ${quartusdir} ${quartusdir}_${fmax}MHz + # . Copy quartus output dir preserving the meta file information, add SVN revision and fMax portfix + # The SVN revision ensures a unique dir name, which is important, because in case the dir name already happens + # to exists, then cp does not change the date of the dir, so then it is not clear that the dir is a new copy. + cp -rp ${quartusdir} ${quartusdir}-r${svn_revision}_${fmax}MHz fi # Print critical warnings unb_warning $0 "Listing Critical Warnings" -- GitLab