Skip to content
Snippets Groups Projects
Commit 2ca5a38d authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added a first version of the new migration shell script

parent b3cfcaa0
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment