orig/mkhtmlman.csh
author Axel Jacobs <axel@jaloxa.eu>
Mon, 14 Apr 2014 22:21:17 +0100
changeset 73 87fa3132a136
parent 0 0aa115157c9c
permissions -rw-r--r--
New IES test file with spaces in file name
axel@0
     1
#!/bin/csh -fe
axel@0
     2
# RCSid $Id: mkhtmlman.csh,v 1.1 2005/10/26 23:56:21 greg Exp $
axel@0
     3
#
axel@0
     4
# Build man pages in HTML for Radiance website
axel@0
     5
#
axel@0
     6
cd man
axel@0
     7
mkdir man_html
axel@0
     8
foreach sect (1 3 5)
axel@0
     9
cd man$sect
axel@0
    10
foreach mpage (*.$sect)
axel@0
    11
	nroff -man $mpage \
axel@0
    12
		| man2html -title "Radiance $mpage:r program" -nodepage \
axel@0
    13
			     -cgiurl '$title.$section.html' \
axel@0
    14
		> ../man_html/$mpage.html
axel@0
    15
end
axel@0
    16
cd ..
axel@0
    17
end
axel@0
    18
tar czf ../man_html.tar.gz man_html
axel@0
    19
echo "Pages in man_html.tar.gz"
axel@0
    20
exec rm -r man_html