From a31d8a361b89d35c672449879972252d4f7dd477 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Tue, 17 Aug 2010 21:52:51 +0300 Subject: [PATCH] TestSpecs/gen: add first draft of R script generation script --- TestSpecs/gen/rgen | 114 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100755 TestSpecs/gen/rgen diff --git a/TestSpecs/gen/rgen b/TestSpecs/gen/rgen new file mode 100755 index 0000000..4f4adfb --- /dev/null +++ b/TestSpecs/gen/rgen @@ -0,0 +1,114 @@ +#!/bin/bash + +# +# Generate R script for plot processing from campaign and scenario +# configuration file +# + +if test $# -ne 2; then + echo "Usage: $0 campaign-config-file scenario-config-file" 1>&2 + exit 1 +fi + +campaign_file=$1 +scenario_file=$2 + +campaign_name=${campaign_file/%.cfg} +scenario_name=${scenario_file/%.cfg} + +cat <