annotate bin/whatwg @ 12367:a6512c6c4477 draft

<NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
author HackEso <hackeso@esolangs.org>
date Sun, 07 Feb 2021 22:43:44 +0000
parents 15a8f7f3e2e2
children eace8d7551f7
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
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
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")
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
9 echo 'whatwg HTML specification -- $FILESIZE bytes strong! (as of $FILEDATE)'
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
10 exit 0