blob: 4663f635d432b2346afd3c947a13c2578d3bee6e (
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* sm4_${n}_names[] ="
echo "{"
while read j; do
echo $'\t'"\"$j\"",
done < "$i"
echo "};"
echo
done
|