forked from openresty/openresty-devel-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen-changes
executable file
·37 lines (35 loc) · 2.21 KB
/
gen-changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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; $s =~ s/[ \/]~([A-Z][_0-9A-Za-z]+)\b/ $1/g; print $s' \
| sed 's/\<LuaNginxModule\>/the ngx_lua module/' \
| sed 's/\<NginxDevelKit\>/the ngx_devel_kit (NDK) module/' \
| sed 's/\<SrcacheNginxModule\>/the ngx_srcache module/' \
| sed 's/\<LuaRestyCoreLibrary\>/the lua-resty-core library/' \
| sed 's/\<LuaCjsonLibrary\>/the lua-cjson library/' \
| sed 's/\<LuaRdsParserLibrary\>/the lua-rds-parser library/' \
| sed 's/\<LuaRedisParserLibrary\>/the lua-redis-parser 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/\<LuaRestyLockLibrary\>/the lua-resty-lock library/' \
| sed 's/\<LuaRestyRedisLibrary\>/the lua-resty-redis library/' \
| sed 's/\<EchoNginxModule\>/the ngx_echo module/' \
| sed 's/\<DrizzleNginxModule\>/the ngx_drizzle module/' \
| sed 's/\<CoolkitNginxModule\>/the ngx_coolkit module/' \
| sed 's/\<SetMiscNginxModule\>/the ngx_set_misc module/' \
| sed 's/\<PostgresNginxModule\>/the ngx_postgres module/' \
| sed 's/\<EncryptedSessionNginxModule\>/the ngx_encrypted_session module/' \
| sed 's/\<IconvNginxModule\>/the ngx_iconv module/' \
| sed 's/\<RdsCsvNginxModule\>/the ngx_rds_csv module/' \
| sed 's/\<RdsJsonNginxModule\>/the ngx_rds_json module/' \
| sed 's/\<XssNginxModule\>/the ngx_xss module/' \
| sed 's/\<ArrayVarNginxModule\>/the ngx_array_var module/' \
| sed 's/\<LuaUpstreamNginxModule\>/the ngx_lua_upstream module/' \
| sed 's/\<HeadersMoreNginxModule\>/the ngx_headers_more module/' \
| sed 's/\<MemcNginxModule\>/the ngx_memc module/' \
| sed 's/\<Redis2NginxModule\>/the ngx_redis2 module/' \
| sed 's/\<FormInputNginxModule\>/the ngx_form_input module/' \
| sed 's/\<RestyCLI\>/resty-cli/'