Introduction
Introduction Statistics Contact Development Disclaimer Help
md2mw.awk - tgtimes - The Gopher Times
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
---
md2mw.awk (442B)
---
1 #!/usr/bin/awk -f
2
3 $NF ~ "/usr/.*/phlog/.*.md" {
4 sub(".*/usr/", "")
5 user = $0
6 sub("/.*", "", user)
7 gsub("'", "", user)
8 sub("^[^/]*/", "")
9 sub("\\|.*", "")
10
11 src = dst = $0
12 gsub("'", "", dst)
13 sub("phlog/", "article-bitreich-", dst)
14 sub(".md$", ".mw", dst)
15 cmd = "notmarkdown-ms | sed '1 s/.NH [0-9]/.SH "author"/' >'"dst…
16 print cmd
17 while ((getline <src) > 0)
18 if (NR > 2)
19 print $0 | cmd
20 close(cmd)
21 close(src)
22 close(dst)
23 }
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.