init
This commit is contained in:
commit
515596ba2b
12 changed files with 427 additions and 0 deletions
1
assets/.gitignore
vendored
Normal file
1
assets/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/grammalecte
|
19
assets/update_grammalecte
Executable file
19
assets/update_grammalecte
Executable 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
|
||||
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue