From f579d3b1f0db8bb01ae8e8b3b159343fec7f38e7 Mon Sep 17 00:00:00 2001 From: Ozh Date: Fri, 3 Jun 2022 11:37:34 +0200 Subject: Update to v 2.048 --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index baad8f8..a88ab58 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ From the root, * `cd img/` * `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/` -* `grep -v PARENTDIR index.html | grep -o '' | sed 's///' > list.txt` -* `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/img/` +* `grep -v PARENTDIR index.html | grep '\[IMG' | grep -Po 'a href="\K.*?(?=")' | sed 's/\?.*//' > _imglist.txt` +* `wget -N -i _imglist.txt -B http://orteil.dashnet.org/cookieclicker/img/` #### 2. Fetch all new sounds : @@ -25,8 +25,17 @@ Similarly, from the root : * `cd snd/` * `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/` -* `grep -v PARENTDIR index.html | grep -o '' | sed 's///' > list.txt` -* `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/snd/` +* `grep -v PARENTDIR index.html | grep '\[SND' | grep -Po 'a href="\K.*?(?=")' | sed 's/\?.*//' > _sndlist.txt` +* `wget -N -i _sndlist.txt -B http://orteil.dashnet.org/cookieclicker/snd/` + +#### 3. Fetch all new translations : + +Similarly, from the root : + +* `cd loc/` +* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/loc/` +* `grep -v PARENTDIR index.html | grep '\[ ' | grep -Po 'a href="\K.*?(?=")' | sed 's/\?.*//' > _loclist.txt` +* `wget -N -i _loclist.txt -B http://orteil.dashnet.org/cookieclicker/loc/` #### 3. Update `js` and `html` files : @@ -34,8 +43,8 @@ From the root directory : * Fetch the updated `index.html` file: `wget -O index.html http://orteil.dashnet.org/cookieclicker/` * Fetch the updated `style.css` file: `wget -O style.css http://orteil.dashnet.org/cookieclicker/style.css` -* Fetch updated `js` files : `wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/` -* Scan `index.html` for any new `