-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.sh
More file actions
27 lines (23 loc) · 817 Bytes
/
Copy pathmake.sh
File metadata and controls
27 lines (23 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
kopi_lexeliste_do_altre_nim() {
panglo_x="$HOME/panlexia/generated/panglo-$1.md"
x_panglo="$HOME/panlexia/generated/$1-panglo.md"
# Kopioi tiedostot oikeisiin kansioihin ja poista otsikot (ensimmäiset 5 riviä)
#cp "$panglo_x" ./docs/$2/of_panglo.md
tail -n +6 "$panglo_x" > ./docs/$2/of_panglo.md
#cp "$x_panglo" ./docs/$2/do_panglo.md
tail -n +6 "$x_panglo" > ./docs/$2/do_panglo.md
}
# Generate bilingual dictionaries from Panlexia.
cd ~/panlexia
rm ./generated/*
mkdir generated
sh tools/generate_bilingual_dictionaries.sh panglo
cd ~/panglo
# Copy dictionaries to different languages
kopi_lexeliste_do_altre_nim fin fi
kopi_lexeliste_do_altre_nim eng en
kopi_lexeliste_do_altre_nim epo eo
kopi_lexeliste_do_altre_nim rus ru
# Build the website with MkDocs
mkdocs build