Skip to content

Commit adbbbff

Browse files
committed
chore: reformat structure for cat and variant i18n
1 parent b03d690 commit adbbbff

34 files changed

Lines changed: 31 additions & 22 deletions

File tree

.ci/push-i18n.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
for dir in scrolls/*/info
1+
for dir in scrolls/*/.meta
22
do
33
base=$(dirname $dir)
44
cat=$(basename $base)
5-
echo $cat $dir
65
mc cp --recursive ./$dir/* scrolls/druid-scrolls-staging/info/cat/$cat/
76
done
87

9-
for dir in scrolls/*/*/info
8+
for dir in scrolls/*/*/.meta
109
do
1110
base=$(dirname $dir)
1211
scroll=$(basename $base)
13-
echo $scroll $dir
14-
15-
mc cp --recursive ./$dir/* scrolls/druid-scrolls-staging/info/scroll/$scroll/
12+
mc cp --recursive ./$dir/* scrolls/druid-scrolls-staging/info/variant/$scroll/
1613
done

build-all-scrolls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
for d in scrolls/*/*/ ; do
1+
for d in scrolls/*/*/*/ ; do
22
b=$(basename $d)
33
tar -czvf scrolls/$b.tar.gz -C $d .
44
done

build-changed-scrolls.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ fi
55

66
echo "{}" > latest.json
77

8-
for d in scrolls/*/*/ ; do
8+
for d in scrolls/*/*/*/ ; do
99
version=$(cat $d/scroll.json | jq -r '.version')
1010
echo $d
11-
scrollName=$(echo "$d" | cut -d'/' -f3)
11+
scrollName=$(echo "$d" | cut -d'/' -f4)
1212
jq '."'"$scrollName"'" = "'"$version"'"' latest.json|sponge latest.json
1313
done
1414

1515
echo "scrolls that changed"
1616
changedScrolls=$(node get-diff.js)
1717
echo $changedScrolls
1818

19-
for d in scrolls/*/*/ ; do
19+
for d in scrolls/*/*/*/ ; do
2020
b=$(basename $d)
2121
for i in $changedScrolls ; do
2222
if [[ "$i" == "$b" ]]; then
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scrolls/mc/mc-sp@1.17/scroll-switch/mc-sp@1.18/scroll-switch.sh renamed to scrolls/mc/mc-sp/mc-sp@1.17/scroll-switch/mc-sp@1.18/scroll-switch.sh

File renamed without changes.

scrolls/mc/mc-sp@1.17/scroll-switch/mc-sp@1.19/scroll-switch.sh renamed to scrolls/mc/mc-sp/mc-sp@1.17/scroll-switch/mc-sp@1.19/scroll-switch.sh

File renamed without changes.

0 commit comments

Comments
 (0)