diff options
author | Andrew Yu <andrew@andrewyu.org> | 2022-04-17 19:33:36 +0200 |
---|---|---|
committer | Andrew Yu <andrew@andrewyu.org> | 2022-04-17 19:33:36 +0200 |
commit | 230f16f9801914ebc9d4bd1202a0e8877519d446 (patch) | |
tree | 88ce64a2a6c1d816c8eb7412f72eb135885c667b /article-template | |
parent | 5cda16021fe61d5d8c5252b80526f8660337f848 (diff) | |
download | www-230f16f9801914ebc9d4bd1202a0e8877519d446.tar.gz |
update navi
Diffstat (limited to 'article-template')
-rw-r--r-- | article-template/TEMPLATE.md | 67 | ||||
-rw-r--r-- | article-template/ahhh.sh | 16 | ||||
-rwxr-xr-x | article-template/configure | 65 |
3 files changed, 0 insertions, 148 deletions
diff --git a/article-template/TEMPLATE.md b/article-template/TEMPLATE.md deleted file mode 100644 index 42f4042..0000000 --- a/article-template/TEMPLATE.md +++ /dev/null @@ -1,67 +0,0 @@ -%%% -title = "<++>" -abbrev = "<++>" -area = "<++>" -workgroup = "<++>" -submissiontype = "independent" -ipr = "none" -keyword = ["<++>"] -#updates = [ <++> ] -#date = 2003-04-01T00:00:00Z - -[seriesInfo] -name = "Internet-Draft" -value = "Request for Discussions RFDN" -stream = "independent" -status = "informational" - -[[author]] -initials = "A." -surname = "Yu" -fullname = "Andrew Yu" -#role = "author" -organization = "The 2nd School Aff. to FDU" - [author.address] - email = "andrew@andrewyu.org" - uri = "https://www.andrewyu.org/" -%%% - -.# Abstract - -.# Status of This Memo - -This document is currently in the DRAFT status. - -This document describes the author's viewpoint. Distribution of this memo is unlimited. - -{mainmatter} - -# Introduction - -# Conclusion - -# <++> Considerations - -{backmatter} - -{numbered="false"} -# Acknowledgements - - -{numbered="false"} -# Contributors - - -<reference anchor='<++>' target='<++>'> - <front> - <title><++></title> - <author initials='<++>' surname='<++>' fullname='<++>'> - <organization><++></organization> - <address> - <email><++>@<++></email> - <uri>https://<++></uri> - </address> - </author> - <date year='<++>' month="<++>" /> - </front> -</reference> diff --git a/article-template/ahhh.sh b/article-template/ahhh.sh deleted file mode 100644 index a2726f5..0000000 --- a/article-template/ahhh.sh +++ /dev/null @@ -1,16 +0,0 @@ -(sed 's/FILENAME/'"$FILENAME"'/g' << EOF -update: FILENAME.txt FILENAME.7 FILENAME.html - git add . - git commit - git push - -FILENAME.7: FILENAME.md - mmark --man FILENAME.md > FILENAME.7 -FILENAME.txt FILENAME.html: FILENAME.xml - xml2rfc --text --html FILENAME.xml - sed -i -e '/\f/{n;s/^./RFD 1/}' FILENAME.txt - ed FILENAME.txt < Edfile -FILENAME.xml: FILENAME.md - sed '0,/title =/{s/ ."\$\$/"/}' FILENAME.md | mmark > FILENAME.xml -EOF -) diff --git a/article-template/configure b/article-template/configure deleted file mode 100755 index 608292d..0000000 --- a/article-template/configure +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# -# A simple shell script for creating new articles -# -# Copyright © 2022 Andrew Yu <https://www.andrewyu.org> -# -# This is free and unencumbered software released into the public domain. -# -# Anyone is free to copy, modify, publish, use, compile, sell, or -# distribute this software, either in source code form or as a compiled -# binary, for any purpose, commercial or non-commercial, and by any -# means. -# -# In jurisdictions that recognize copyright laws, the author or authors -# of this software dedicate any and all copyright interest in the -# software to the public domain. We make this dedication for the benefit -# of the public at large and to the detriment of our heirs and -# successors. We intend this dedication to be an overt act of -# relinquishment in perpetuity of all present and future rights to this -# software under copyright law. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -# OTHER DEALINGS IN THE SOFTWARE. - - -[ -z "$2" ] && printf "$0: Not enough arguments.\n$0: You MUST run this script with the following arguments:\n$0: <Basename> <RFD number>\n" > /dev/stderr && exit 1 -[ "$3" ] && printf "$0: Too many arguments.\n$0: You MUST run this script with the following arguments:\n$0: <Basename> <RFD number>\n" > /dev/stderr && exit 2 - -FILENAME="$1" -RFDN="$2" - -mv TEMPLATE.md "$FILENAME".md - -sed -i 's/RFDN/'"$RFDN"'/g' "$FILENAME".md - -(sed 's/FILENAME/'"$FILENAME"'/g' << EOF -update: FILENAME.txt FILENAME.7 FILENAME.html - git add . - git commit - git push - -FILENAME.7: FILENAME.md - mmark --man FILENAME.md > FILENAME.7 -FILENAME.txt FILENAME.html: FILENAME.xml - xml2rfc --text --html FILENAME.xml - sed -i -e '/\f/{n;s/^DOTS/RFD RFDN/}' FILENAME.txt - ed FILENAME.txt < Edfile -FILENAME.xml: FILENAME.md - sed '0,/title =/{s/ ."\$\$/"/}' FILENAME.md | mmark > FILENAME.xml -EOF -) | sed 's/DOTS/'"$(printf 'RFD %s' "$RFDN" | sed 's/././g')"'/g' > Makefile - -(sed 's/RFDN/'"$RFDN"'/g' << EOF -6 -s/^DOTS/RFD RFDN/ -wq -EOF -) | sed 's/DOTS/'"$(printf 'RFD %s' "$RFDN" | sed 's/././g')"'/g' > Edfile - -printf "$0: Finished generating Makefile and Edfile.\n$0: You MUST now edit $FILENAME.md and replace the <++>s.\n" > /dev/stderr |