socsvn commit: r237027 - soc2012/jhagewood/mdocml/tests

jhagewood at FreeBSD.org jhagewood at FreeBSD.org
Mon Jun 4 03:39:45 UTC 2012


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
 


More information about the svn-soc-all mailing list