summaryrefslogtreecommitdiffstats
path: root/qtinterface/parser.sh
blob: d45b28b66db91b7121a23e4c356ed3d748a902e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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