Date: Mon, 04 Jun 2012 03:39:43 +0000 From: jhagewood@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r237027 - soc2012/jhagewood/mdocml/tests Message-ID: <20120604033943.4B3FC106566B@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhagewood Date: Mon Jun 4 03:39:43 2012 New Revision: 237027 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=237027 Log: Modified: soc2012/jhagewood/mdocml/tests/compile-man-pages.sh Modified: soc2012/jhagewood/mdocml/tests/compile-man-pages.sh ============================================================================== --- soc2012/jhagewood/mdocml/tests/compile-man-pages.sh Mon Jun 4 03:34:31 2012 (r237026) +++ soc2012/jhagewood/mdocml/tests/compile-man-pages.sh Mon Jun 4 03:39:43 2012 (r237027) @@ -6,25 +6,24 @@ mkdir $HOME/Documents/man_pages cd $HOME/Documents/man_pages/ -find /usr/src/ \( -name "*.1" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.2" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.3" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.4" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.5" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.6" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.7" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.8" \) -type f >> ./manpaths.txt -find /usr/src/ \( -name "*.man" \) -type f >> ./manpaths.txt -echo "EOL" >> ./manpaths.txt - +find ./man \( -name "*.1" \) -type f >> ./manpaths.txt +find ./man \( -name "*.2" \) -type f >> ./manpaths.txt +find ./man \( -name "*.3" \) -type f >> ./manpaths.txt +find ./man \( -name "*.4" \) -type f >> ./manpaths.txt +find ./man \( -name "*.5" \) -type f >> ./manpaths.txt +find ./man \( -name "*.6" \) -type f >> ./manpaths.txt +find ./man \( -name "*.7" \) -type f >> ./manpaths.txt +find ./man \( -name "*.8" \) -type f >> ./manpaths.txt +find ./man \( -name "*.man" \) -type f >> ./manpaths.txt +echo "EOF" >> ./manpaths.txt num_lines=$(cat ./manpaths.txt | grep -c .) current_doc="." - -while [ ! current_doc == "EOL" ] +exit +while [ ! current_doc == "EOF" ] do current_doc=$(tail -n $num_lines ./manpaths.txt) sed -n '2,$p' ./manpaths.txt > ./manpaths.txt - mandoc -Tpdf -Ostyle=style.css $current_doc 2> ./mdocml-manpage-errors.txt >> ./out.pdf + mandoc -Tpdf -Ostyle=style.css $current_doc 2> ./mdocml-manpage-errors.txt >> /dev/null num_lines=$(cat ./manpaths.txt | grep -c .) done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120604033943.4B3FC106566B>