From 2ca5a38d0b8c3372537dada0d112e71762f1842b Mon Sep 17 00:00:00 2001
From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de>
Date: Tue, 25 Aug 2015 14:02:36 +0200
Subject: [PATCH] added a first version of the new migration shell script

---
 .../migrate-keywords-to-teetime-2.0.sh        | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 src/main/resources/migrate-keywords-to-teetime-2.0.sh

diff --git a/src/main/resources/migrate-keywords-to-teetime-2.0.sh b/src/main/resources/migrate-keywords-to-teetime-2.0.sh
new file mode 100644
index 00000000..3ed942af
--- /dev/null
+++ b/src/main/resources/migrate-keywords-to-teetime-2.0.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+function replace(){
+echo $1
+sed -i -- '/onInitializing/d' $1
+sed -i -- 's:connectInterThreads:connectPorts:' $1
+sed -i -- 's:connectIntraThreads:connectPorts:' $1
+sed -i -- 's:AnalysisConfiguration.connectPorts:connectPorts:' $1
+sed -i -- 's:addThreadableStage:declareActive:' $1
+sed -i -- 's: AnalysisConfiguration: Configuration:' $1
+sed -i -- 's: AnalysisConfiguration: Configuration:' $1
+sed -i -- 's:import teetime.framework.AnalysisConfiguration:import teetime.framework.Configuration:' $1
+sed -i -- 's: Analysis: Execution:' $1
+sed -i -- 's: Analysis: Execution:' $1
+sed -i -- 's:import teetime.framework.Analysis:import teetime.framework.Execution:' $1
+sed -i -- 's:import teetime.stage.basic.distributor.CopyByReferenceStrategy:import teetime.stage.basic.distributor.strategy.CopyByReferenceStrategy:' $1
+
+}
+
+echo "Migrating to TeeTime 2.0"
+
+export -f replace
+find $1 -type f -name *.java -exec bash -c 'replace "$0"' {} \;
+
+echo "Done"
\ No newline at end of file
-- 
GitLab