mirror of
https://github.com/cubixle/radius-rs.git
synced 2026-04-24 22:44:42 +01:00
18 lines
332 B
Bash
Executable File
18 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
REPO_ROOT="$(cd ./"$(git rev-parse --show-cdup)" || exit; pwd)"
|
|
|
|
DICT_NAMES=(
|
|
"rfc2865"
|
|
)
|
|
|
|
for DICT_NAME in "${DICT_NAMES[@]}"; do
|
|
cat /dev/null > "${REPO_ROOT}/src/${DICT_NAME}.rs"
|
|
cargo run --bin code_gen "${REPO_ROOT}/dicts/dictionary.${DICT_NAME}" "${REPO_ROOT}/src/${DICT_NAME}.rs"
|
|
done
|
|
|
|
cargo fmt
|
|
|