Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 38 lines (35 sloc) 2.21 KB
#!/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/'