mirror of
https://github.com/cubixle/radius-rs.git
synced 2026-04-29 18:38:39 +01:00
Restructure the project tree
This commit is contained in:
@@ -4,7 +4,7 @@ set -eu
|
||||
|
||||
REPO_ROOT="$(cd ./"$(git rev-parse --show-cdup)" || exit; pwd)"
|
||||
DICTS_DIR="${REPO_ROOT}/dicts"
|
||||
SRC_DIR="${REPO_ROOT}/src"
|
||||
SRC_DIR="${REPO_ROOT}/radius/src"
|
||||
|
||||
DICTS=$(ls "$DICTS_DIR")
|
||||
|
||||
@@ -17,7 +17,7 @@ done
|
||||
# shellcheck disable=SC2068
|
||||
for DICT in ${DICTS[@]}; do
|
||||
DICT_NAME="${DICT##*.}"
|
||||
(cd "${REPO_ROOT}/code_generator"; cargo run "${DICTS_DIR}/dictionary.${DICT_NAME}" "${SRC_DIR}/${DICT_NAME}.rs")
|
||||
cargo run --bin code-generator "${DICTS_DIR}/dictionary.${DICT_NAME}" "${SRC_DIR}/${DICT_NAME}.rs"
|
||||
done
|
||||
|
||||
cargo fix --allow-dirty --allow-staged
|
||||
Reference in New Issue
Block a user