annotate bin/whatwg @ 12500:e48c08805365 draft default tip

<b_jonas> ` learn \'The password of the month is Cthulhuquagdonic Mothraquagdonic Narwhalicorn.\' # https://logs.esolangs.org/libera-esolangs/2024-04.html#lKE Infinite craft
author HackEso <hackeso@esolangs.org>
date Wed, 01 May 2024 06:39:10 +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