This commit is contained in:
Matthieu Jolimaitre 2025-07-10 23:37:19 +02:00
commit 515596ba2b
12 changed files with 427 additions and 0 deletions

1
assets/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/grammalecte

19
assets/update_grammalecte Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
dl_ref="$(wget -qO- https://grammalecte.net/ | grep ' <a class="button" href="zip/Grammalecte-fr-' | head -n 1 | cut -d '"' -f 4)"
if [ ".$dl_ref" = "." ]
then echo "[update_grammalecte] Failed to get latest grammalecte." && exit 1
fi
rm -fr grammalecte
mkdir -p grammalecte
wget -O ./grammalecte/grammalecte.zip "https://grammalecte.net/$dl_ref"
(
cd grammalecte
unzip grammalecte.zip
)