mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
scripts/update-dict.sh: add support for files with relative paths.
This commit is contained in:
parent
eeff86feee
commit
694b057d81
1 changed files with 10 additions and 2 deletions
|
|
@ -10,8 +10,16 @@ for lang in $(jq -r 'keys[]' $CONFIG); do
|
||||||
|
|
||||||
echo "- Generating: $lang"
|
echo "- Generating: $lang"
|
||||||
|
|
||||||
files=$(jq -r ".$lang | if type==\"array\" then .[] else . end" $CONFIG)
|
files=()
|
||||||
dict=$(grep -hs ^ $files | $BASE_DIR/generate-dict.sh > $EXTRAS_DIR/dict/$lang)
|
for f in $(jq -r ".$lang | if type==\"array\" then .[] else . end" $CONFIG); do
|
||||||
|
|
||||||
|
if [ "${f:0:1}" != "/" ]; then
|
||||||
|
f="$EXTRAS_DIR/$f"
|
||||||
|
fi
|
||||||
|
files+=( "$f" )
|
||||||
|
done
|
||||||
|
|
||||||
|
grep -hs ^ ${files[@]} | $BASE_DIR/generate-dict.sh > $EXTRAS_DIR/dict/$lang
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue