-
Notifications
You must be signed in to change notification settings - Fork 113
/
gen-changes
executable file
·20 lines (18 loc) · 1.09 KB
/
gen-changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
perl twiki2pod.pl a.twiki \
| pod2text -u -i 1 -w 69 - \
| perl -e '$s = do { local $/; <> }; $s =~ s/(<http[^>]+)\n\s+([^>]+?>)/$1$2/g; print $s' \
| sed 's/\<LuaNginxModule\>/the ngx_lua module/' \
| sed 's/\<SrcacheNginxModule\>/the ngx_srcache module/' \
| sed 's/\<LuaRestyCoreLibrary\>/the lua-resty-core library/' \
| sed 's/\<LuaRestyUpstreamHealthcheckLibrary\>/the lua-resty-upstream-healthcheck library/' \
| sed 's/\<LuaRestyDNSLibrary\>/the lua-resty-dns library/' \
| sed 's/\<LuaRestyWebSocketLibrary\>/the lua-resty-websocket library/' \
| sed 's/\<LuaRestyMySQLLibrary\>/the lua-resty-mysql library/' \
| sed 's/\<LuaRestyLrucacheLibrary\>/the lua-resty-lrucache library/' \
| sed 's/\<EchoNginxModule\>/the ngx_echo module/' \
| sed 's/\<SetMiscNginxModule\>/the ngx_set_misc module/' \
| sed 's/\<PostgresNginxModule\>/the ngx_postgres module/' \
| sed 's/\<MemcNginxModule\>/the ngx_memc module/' \
| sed 's/\<Redis2NginxModule\>/the ngx_redis2 module/' \
| sed 's/\<FormInputNginxModule\>/the ngx_form_input module/'