28 lines
1.4 KiB
Bash
Executable file
28 lines
1.4 KiB
Bash
Executable file
#!/bin/sh
|
|
set -xe
|
|
FILE=RFC_XR_Fragments
|
|
|
|
LOGO='
|
|
▄ ▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄
|
|
▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▄▄▄ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓▄▄▄▄▄ ▓▄▄▄▄▄
|
|
▄▀▀▀▀▀▄ ▒ ▒ ▒▀▀▀ ▒ ▒ ▒▀▀▀▀▀▒ ▒ ▒ ▒ ▒ ▒▄▄▄▄▄▒ ▒ ▒ ▒ ▒
|
|
░ ░ ░ ░ ░ ░ ░ ░▄▄▄▄░ ░ ░ ░▄▄▄▄▄▄ ░ ░ ░▄▄▄▄▄ ▄▄▄▄▄░
|
|
|
|
'
|
|
|
|
# to update HTML surf to http://localhost:8080/#📃 All-in-one-spec
|
|
# and hit 'export tiddler' > html (save to RFC_XR_Fragments.html)
|
|
{
|
|
echo "$LOGO";
|
|
lynx -width 600 -dump ${FILE}.html \
|
|
| sed 's|file:.*/||g' \
|
|
| sed 's|.*\(BUTTON\).*$||g' \
|
|
| sed 's|^[ ]\+\([a-zA-Z0-9]\)|\1|g'
|
|
} > ${FILE}.txt
|
|
|
|
#TEXT=1 ./meta.awk ${FILE}.md > ${FILE}.txt
|
|
#HTML=1 ./meta.awk html/template.html > ${FILE}.html
|
|
|
|
#xml2rfc --v3 RFC_XR_$topic.xml # RFC_XR_$topic.txt
|
|
#sed -i 's/Expires: .*//g' RFC_XR_$topic.txt
|
|
#convert -size 700x2400 xc:white -font "FreeMono" +antialias -pointsize 12 -fill black -annotate +15+15 "@RFC_XR_Fragments.txt" -colorspace gray +dither -posterize 6 RF6_XR_Fragments.png
|