summaryrefslogtreecommitdiff
path: root/toolbin/gen_model_deps.sh
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
commit420d2ef464d4a741028e132e662d5626806a41f5 (patch)
tree1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /toolbin/gen_model_deps.sh
Initial commitHEADmaster
Diffstat (limited to 'toolbin/gen_model_deps.sh')
-rwxr-xr-xtoolbin/gen_model_deps.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/toolbin/gen_model_deps.sh b/toolbin/gen_model_deps.sh
new file mode 100755
index 0000000..2c5e618
--- /dev/null
+++ b/toolbin/gen_model_deps.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+function gi {
+ I=$(grep include $1 \
+ | grep -o '".*"' \
+ | tr -d '"' \
+ | sed 's/\(.*\)/model\/\1.model/' \
+ | tr "\n" " ")
+ echo -n "$I "
+ for i in $I; do
+ gi $i
+ done
+}
+
+for i in model/*.model; do
+ echo $i | sed 's/model\/\(.*\)\.model/properties\/\1\/properties.hpp: /' | tr -d "\n"
+ gi $i
+ echo
+done \ No newline at end of file
contact: Jan Huwald // Impressum