~jadedctrl/jam-xwx-moe
~jadedctrl/jam-xwx-moe/robotoj/esperanto fluo/ruli.sh
~jadedctrl/jam-xwx-moe/robotoj/esperanto fluo/ruli.sh
0 | #!/bin/sh |
1 | set -o errexit |
2 |
|
3 | . ./env.sh |
4 |
|
5 | export ALL_PROXY="http://localhost:3128" |
6 | export MANICITO_TEMPLATE='<i>$USER</i> afiĆis:<br>$POST_URL' |
7 |
|
8 | TEMP="$(mktemp)" |
9 | cat history history.lang_eo > "$TEMP" |
10 | manicito -H "$TEMP" lang_eo https://jam.xwx.moe |
11 | if test -n "$(tail -1 "$TEMP")"; then |
12 | tail -1 "$TEMP" > history.lang_eo |
13 | fi |
14 |
|
15 | mv "$TEMP" history |
16 | cat history history.esperanto > "$TEMP" |
17 | manicito -H "$TEMP" esperanto https://jam.xwx.moe |
18 | if test -n "$(tail -1 "$TEMP")"; then |
19 | tail -1 "$TEMP" > history.esperanto |
20 | fi |
21 |
|
22 | mv "$TEMP" history |