From b657096f9bcddedcaaacda9f3091dadf6062af0a Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Fri, 10 Jun 2016 13:40:10 +0200
Subject: [PATCH] Add a script to generate the graphs!

---
 CMakeLists.txt     | 1 +
 bin/CMakeLists.txt | 1 +
 bin/make_graph.sh  | 7 +++++++
 3 files changed, 9 insertions(+)
 create mode 100644 bin/CMakeLists.txt
 create mode 100755 bin/make_graph.sh

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 965549e7..8de4ecc9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,7 @@ execute_process(COMMAND git submodule update --init --recursive
 add_subdirectory(python)
 
 add_subdirectory(test)
+add_subdirectory(bin)
 
 # finalize the dune project, e.g. generating config.h etc.
 finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
new file mode 100644
index 00000000..847e8935
--- /dev/null
+++ b/bin/CMakeLists.txt
@@ -0,0 +1 @@
+dune_symlink_to_source_files(FILES make_graph.sh)
diff --git a/bin/make_graph.sh b/bin/make_graph.sh
new file mode 100755
index 00000000..4d39d3fa
--- /dev/null
+++ b/bin/make_graph.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+for f in "$@"
+do
+    perl -i -pe 's/FunctionSpace\(.*\)\), //g' $f
+    dot -Tpdf -O $f
+done
-- 
GitLab