Separate the code generator to dedicated project

This commit is contained in:
moznion
2020-11-28 17:51:57 +09:00
parent a529b5f0a6
commit 9aa39d584a
8 changed files with 111 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ 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"
(cd "${REPO_ROOT}/code_generator"; cargo run "${DICTS_DIR}/dictionary.${DICT_NAME}" "${SRC_DIR}/${DICT_NAME}.rs")
done
cargo fix --allow-dirty --allow-staged