annotate bin/whatwg @ 12369:6d7fb0735cfe draft

<NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
author HackEso <hackeso@esolangs.org>
date Sun, 07 Feb 2021 22:48:30 +0000
parents eace8d7551f7
children bd245ca93c79
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")
12369
6d7fb0735cfe <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents: 12368
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