From cc95bd1ca5e69ce13766ca0acea11560531ed620 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Tue, 24 May 2016 08:01:55 +0000
Subject: [PATCH] From snapshots, raw tape configuration is extracted and written into tape file and not the rendered one

---
 bin/trisurf-deploy |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/bin/trisurf-deploy b/bin/trisurf-deploy
index 3bd3b15..06b54da 100755
--- a/bin/trisurf-deploy
+++ b/bin/trisurf-deploy
@@ -18,7 +18,7 @@
 #subdirectory structure
 function subdir() {
 
-    exit 0;
+    echo "ABC";
 }
 
 
@@ -26,17 +26,19 @@
 
 declare tape_no=${#tapes[@]}
 for i in `seq 1 $tape_no`; do
-    echo "trisurf -t ${tapes[i-1]} -d $directory/subdir($i) -o ${tape_overrides[i-1]} ${extra_options[i-1]}"
+    declare sdir=$(subdir)
+    declare dir_struct="$directory/$sdir"
+#if doesnt exist
+    echo "mkdir $dir_struct"
+#if doesnt exist
+    echo "cp ${tapes[i-1]} $dir_struct"
+
+ 
+    echo "trisurf -t ${tapes[i-1]} -d $dir_struct -o ${tape_overrides[i-1]} ${extra_options[i-1]}"
 done;
 
 
 #Functions required for operation
-
-
-
-
-
-
 
 
 echo "Deploying configuration of trisurf"

--
Gitblit v1.9.3