Add RFC8314_-_Cleartext_Considered_Obsolete

main
Manos Pitsidianakis 2023-07-24 12:51:08 +03:00
parent faf6134a19
commit f944a8d9cf
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
4 changed files with 7 additions and 1 deletions

View File

@ -51,6 +51,12 @@ if [ -z "$rfc" ]; then
exit 1
fi
# add `rfc` prefix if it's missing
case "$rfc" in
*rfc*) ;;
*RFC*) ;;
*) rfc=rfc"$rfc" ;;
esac
#wget "https://www.rfc-editor.org/info/$rfc"
#https://www.rfc-editor.org/rfc/rfc9413.html#
@ -62,7 +68,7 @@ title=$(curl -s -S "https://datatracker.ietf.org/doc/$rfc/bibtex/" | sed -e 's/^
upperrfc=$(echo "$rfc" | tr [:lower:] [:upper:])
title=$(echo "$title" | tr [:space:] '_')
folder="${upperrfc}_-_${title}"
folder=$(printf "%s" "$folder" | sed -e "s/_*$//")
folder=$(printf "%s" "$folder" | sed -e "s/_*$//" -e "s/\///")
mkdir -p "$folder"
cd "$folder"