Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: View the new 'man' pages on upgraded systems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: View the new 'man' pages on upgraded systems
Authored by: sEEKz on Dec 13, '07 09:19:08AM
There is an issue. Especially if you use a case sensitive filesystem. It seems that in Tiger several files start with an uppercase letter. Whereas in Leopard all the .gz files are lowercase. For example:

larik@hustler mann $ ls -al widget.n.gz Widget.n 
-rw-r--r--  1 root  wheel  3568 Dec 13 17:39 Widget.n
-rw-r--r--  1 root  wheel  2528 Dec 13 17:39 widget.n.gz
The following code can be used, just to remove all files which have an .gz equivalent. (You don't need the Leopard install DVD). Backup first and use at your own risk.

for f in $(find /usr/share/man -type f \! -iname '*.gz'); do
   lc=`echo $f | tr "[:upper:]" "[:lower:]"`
   ( [ -e ${f}.gz ] || [ -e ${lc}.gz ] ) && rm $f 

[ Reply to This | # ]