Fix helper script to generate code

This commit is contained in:
moznion
2020-11-25 23:12:29 +09:00
parent 76990a1fee
commit e95a1d3071

View File

@@ -12,6 +12,11 @@ DICTS=$(ls "$DICTS_DIR")
for DICT in ${DICTS[@]}; do
DICT_NAME="${DICT##*.}"
cat /dev/null > "${SRC_DIR}/${DICT_NAME}.rs"
done
# shellcheck disable=SC2068
for DICT in ${DICTS[@]}; do
DICT_NAME="${DICT##*.}"
cargo run --bin code_gen "${DICTS_DIR}/dictionary.${DICT_NAME}" "${SRC_DIR}/${DICT_NAME}.rs"
done