Files
wehub-resource-sync 7254f7b4d1
Build / Build (macos-latest) (push) Waiting to run
Build / Build (ubuntu-latest) (push) Waiting to run
Build / Build (windows-latest) (push) Waiting to run
Build / Analyze (javascript) (push) Waiting to run
Build / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:37:45 +08:00

21 lines
483 B
Bash
Executable File

#!/bin/bash
set -e
pushd $(cd $(dirname ${0})/..; pwd) > /dev/null
schema() {
echo "dlc schema"
[[ $(grep -U $'\x0D' ./source/dlc-schema.js) ]] && crlf=1
node ./tools/flatc.js --root dlc --out ./source/dlc-schema.js ./tools/dlc.fbs
if [[ -n ${crlf} ]]; then
unix2dos --quiet --newfile ./source/dlc-schema.js ./source/dlc-schema.js
fi
}
while [ "$#" != 0 ]; do
command="$1" && shift
case "${command}" in
"schema") schema;;
esac
done