ref: 1cf6db0d4620636d69f35d905f24a4ae690ea2ca
parent: e1f3bdbb7ae09ca70235f73e99e88eba214e3212
author: Uriel <u@berlinblue.org>
date: Mon Dec 7 00:38:42 EST 2009
Set some reasonable titles for man pages.
--- a/apps/wman/app.rc
+++ b/apps/wman/app.rc
@@ -29,6 +29,8 @@
if(~ $wman_page intro && test -f $wman_cat_path^/0^$"wman_page_file)
wman_page_file=0^$"wman_page_file
wman_page_file=$wman_cat_path^/^$"wman_page_file
+ x=`{echo $"req_path|sed 's%.*/([^/]+)/'$"wman_cat'/'^$"wman_page^'%\1%; s%_% %g'}
+ pageTitle=$wman_page' page from Section '$wman_cat' of the '^$"x' manual'
}
}