rename rfc/index.md to txt, it isn't markdown

This commit is contained in:
Mechiel Lukkien 2023-10-12 23:15:35 +02:00
parent a93dd348fe
commit 52e71167a9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
for number in $(sed -n 's/^\([0-9][0-9]*\)[ \t].*$/\1/p' index.md); do for number in $(sed -n 's/^\([0-9][0-9]*\)[ \t].*$/\1/p' index.txt); do
if ! test -f "$number"; then if ! test -f "$number"; then
curl https://www.rfc-editor.org/rfc/rfc$number.txt >$number || rm $number curl https://www.rfc-editor.org/rfc/rfc$number.txt >$number || rm $number
fi fi
done done
for name in $(sed -n 's/^\([0-9][0-9]*-eid[0-9][0-9]*\)[ \t].*$/\1/p' index.md); do for name in $(sed -n 's/^\([0-9][0-9]*-eid[0-9][0-9]*\)[ \t].*$/\1/p' index.txt); do
if ! test -f "$name"; then if ! test -f "$name"; then
rfc=$(echo $name | cut -f1 -d-) rfc=$(echo $name | cut -f1 -d-)
eid=$(echo $name | cut -f2 -d-) eid=$(echo $name | cut -f2 -d-)