16 if [ `which doxygen 2> /dev/null` !=
"" ]
22 pdfName=CrombieToolsManual.pdf
24 compareFile=docs/html/index.html
26 echo
"Comparing age to $compareFile" 29 if [ ! -f $compareFile -o $(find `git ls-files` -newer $compareFile | wc -l) -ne 0 ]
32 echo $(find `git ls-files` -newer $compareFile)
33 echo
"Making documentation." 35 doxygen docs/CrombieDocs.cfg &> /dev/null
37 if [
"$copy" !=
"test" ]
40 echo
"Making .pdf reference" 42 make &> /dev/null && mv refman.pdf $pdfName
47 if [ `cat doxygen.log | wc -l` -eq 4 ]
60 if [
"$USER" =
"dabercro" ] && [
"$copy" =
"copy" ]
65 targetHost=lxplus.cern.ch
66 targetDir=/afs/cern.ch/user/d/dabercro/www/CrombieToolsDocs
69 targetHost=athena.dialup.mit.edu
70 targetDir=/afs/athena.mit.edu/user/d/a/dabercro/www/CrombieToolsDocs
73 targetHost=t3desk003.mit.edu
74 targetDir=/home/dabercro/public_html/CrombieToolsDocs
78 if [ `which gtar 2> /dev/null` =
"" ]
85 echo
"Copying documentation to $targetHost." 86 $useTar -czf - docs/html/* docs/latex/$pdfName test/docs/*.pdf |
87 ssh $targetHost
"mkdir -p $targetDir 2> /dev/null ; cd $targetDir ; rm -rf search ; tar -xzf - ; mv docs/html/* . ; mv docs/latex/$pdfName . ; mv test/docs/*.pdf ." 95 echo
"You need the 'doxygen' package to" 96 echo
"generate the documentation." 97 echo
"See this page for more information:" 99 echo
"http://www.stack.nl/~dimitri/doxygen/" 101 echo
"You will also need the graphviz package" 102 echo
"to use the configuration as is:" 104 echo
"http://www.graphviz.org/" 106 echo
"If you don't want to install these, check out the main page of my documentation here:" 108 echo
"http://t3serv001.mit.edu/~dabercro/CrombieToolsDocs/"