mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-18 04:00:03 +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"
|
||||
|
||||
files=$(jq -r ".$lang | if type==\"array\" then .[] else . end" $CONFIG)
|
||||
dict=$(grep -hs ^ $files | $BASE_DIR/generate-dict.sh > $EXTRAS_DIR/dict/$lang)
|
||||
files=()
|
||||
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
|
||||
|
||||
echo "Done"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue