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