annotate bin/whatwg @ 12365:15a8f7f3e2e2 draft

<NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
author HackEso <hackeso@esolangs.org>
date Sun, 07 Feb 2021 22:42:42 +0000
parents
children a6512c6c4477
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"
15a8f7f3e2e2 <NotApplicable> fetch /hackenv/bin/whatwg https://hack.esolangs.org/get/bin/whatwg
HackEso <hackeso@esolangs.org>
parents:
diff changeset
3 if ![ -e "$FILENAME" ]; then
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