annotate bin/whatwg @ 12467:a4835ba01fb1 draft

<int-e> learn The password of the month was delayed by snow and ice and Elon Musk.
author HackEso <hackeso@esolangs.org>
date Sun, 20 Nov 2022 20:26:27 +0000
parents bd245ca93c79
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12365
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
1 #!/bin/bash
12368
eace8d7551f7 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents: 12367
diff changeset
2 FILENAME="tmp/whatwg"
12367
a6512c6c4477 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents: 12365
diff changeset
3 if ! [ -e "$FILENAME" ]; then
12365
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
4 echo 'what?'
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
5 exit -1
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
6 fi
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
7 FILESIZE=$(stat -c%s "$FILENAME")
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
8 FILEDATE=$(stat -c%y "$FILENAME")
12370
bd245ca93c79 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents: 12369
diff changeset
9 echo -e "whatwg HTML specification -- $FILESIZE bytes strong! (as of $FILEDATE)"
12365
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
10 exit 0