blob: b31e16e19c901d6b80ef654d7b149d1dfb4045a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
for i in "$@"; do
n=$(basename "$i" .txt|sed -e 's/s$//')
echo "const char* tpf_${n}_names[] ="
echo "{"
while read j; do
echo $'\t'"\"$j\"",
done < "$i"
echo "};"
echo
done
|