From f00cb1296fa15a1dd776ab25c73894c655023c30 Mon Sep 17 00:00:00 2001
From: rschoene <rene.schoene@tu-dresden.de>
Date: Wed, 1 Sep 2021 15:51:42 +0200
Subject: [PATCH] update copy script (remains from journal submission)

---
 trainbenchmark/copy.sh | 31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/trainbenchmark/copy.sh b/trainbenchmark/copy.sh
index 6df65c8b5..9ad067330 100755
--- a/trainbenchmark/copy.sh
+++ b/trainbenchmark/copy.sh
@@ -6,23 +6,30 @@ function make() {
 	( cd results && ln -s $1 recent )
 	./gradlew plotIndividual
 }
-make inject
-make repair
-target=~/git/v-papers/runtime-rags-slides/images/slides-
+# make inject
+# make repair
+target=~/git/v-papers/RuntimeRAGs/fig/
+# target=~/git/v-papers/runtime-rags-slides/images/slides-
 # target=~/git/v-papers/runtime-rags-slides/images/
+phases="Read-and-Check Transformation-and-Recheck"
+queries="ConnectedSegments RouteSensor SwitchSet"
 for workload_directory in repair inject
 do
-	for phase in Read-and-Check Transformation-and-Recheck
+	for phase in $phases
 	do
-		for query in ConnectedSegments RouteSensor
+		for query in $queries
 		do
-			cp diagrams/$workload_directory/$phase-$query-embed.pdf $target$workload_directory-$phase-$query.pdf;
+			cp diagrams/recent/$workload_directory/$phase-$query-$workload_directory.pdf $target$phase-$query-$workload_directory.pdf;
 		done
 	done
 done
-# cp diagrams/repair/Read-and-Check-ConnectedSegments-embed.pdf $target/images/Read-and-Check-ConnectedSegments.pdf
-# cp diagrams/repair/Read-and-Check-RouteSensor-embed.pdf $target/images/Read-and-Check-RouteSensor.pdf
-# cp diagrams/inject/Transformation-and-Recheck-ConnectedSegments-embed.pdf $target/images/inject-Transformation-and-Recheck-ConnectedSegments.pdf
-# cp diagrams/inject/Transformation-and-Recheck-RouteSensor-embed.pdf $target/images/inject-Transformation-and-Recheck-RouteSensor.pdf
-# cp diagrams/repair/Transformation-and-Recheck-ConnectedSegments-embed.pdf $target/images/repair-Transformation-and-Recheck-ConnectedSegments.pdf
-# cp diagrams/repair/Transformation-and-Recheck-RouteSensor-embed.pdf $target/images/repair-Transformation-and-Recheck-RouteSensor.pdf
+
+for workload_directory in repair inject
+do
+	for phase in $phases
+	do
+		cp diagrams/recent/benchmark/$workload_directory/$phase-$workload_directory.pdf $target$phase-$workload_directory.pdf;
+	done
+done
+
+cp diagrams/recent/benchmark/inject/Read-inject.pdf ${target}Read-inject.pdf
-- 
GitLab