summaryrefslogtreecommitdiffstats
path: root/qtinterface/parser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/parser.sh')
-rwxr-xr-xqtinterface/parser.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/qtinterface/parser.sh b/qtinterface/parser.sh
new file mode 100755
index 0000000..d45b28b
--- /dev/null
+++ b/qtinterface/parser.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# Run me like this:
+# ls tq* | grep '\.h' | sed 's/\.h/\\\.h/g' | xargs ./parser.sh
+
+for var in "$@"
+do
+ echo -n "find ./ -type f -iname \"*.c*\" -exec sed -i 's/\([^t]\)"
+ echo -n ${var##t} | sed 's/\.h/\\\.h/g'
+ echo -n "/\1"
+ echo -n $var | sed 's/\.h/\\\.h/g'
+ echo "/g' {} \;"
+
+ echo -n "find ./ -type f -iname \"*.h*\" -exec sed -i 's/\([^t]\)"
+ echo -n ${var##t} | sed 's/\.h/\\\.h/g'
+ echo -n "/\1"
+ echo -n $var | sed 's/\.h/\\\.h/g'
+ echo "/g' {} \;"
+done