/[escript]/trunk/tools/releasetools/copydocs.sh
ViewVC logotype

Annotation of /trunk/tools/releasetools/copydocs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 717 - (hide annotations)
Thu Apr 27 08:07:11 2006 UTC (14 years, 5 months ago) by elspeth
File MIME type: application/x-sh
File size: 2859 byte(s)
Now does userguide in html and pdf upload to webserver.

1 elspeth 716 #!/bin/bash
2    
3     # this script builds the release documentation (according to scons docs) and copies it to the webserver.
4    
5     # keep a record of where we are
6     HERE=`pwd`
7    
8     # get into position
9     cd $HOME/src/svn/esys13/trunk
10    
11     # set up the environment for shake47
12     export LD_LIBRARY_PATH="/home/elspeth/src/svn/esys13/trunk/lib"
13     export PYTHONPATH="${ESYS_ROOT}"
14     export ESYS_ROOT="/home/elspeth/src/svn/esys13/trunk"
15     export OMP_SCHEDULE="dynamic"
16     export OMP_NUM_THREADS=4
17     export OMP_DYNAMIC=TRUE
18     export OMP_NESTED=FALSE
19    
20     # update the cvs
21     svn update > /var/tmp/svn_msgs.txt 2>&1
22    
23     # make esys
24     echo "Making esys install" >> /tmp/scons_msgs.txt
25     scons >> /tmp/scons_msgs.txt 2>&1
26    
27     # doxygen stuff will happen later
28    
29     # run doxygen
30     #cd $HOME/src/svn/esys13/trunk/doc/
31     #doxygen doxygen/doxygen_esys > /tmp/doxygen_msgs.txt 2>&1
32    
33     # run epydoc
34     cd $HOME/src/svn/esys13/trunk/
35     scons docs
36    
37     # copy the docs to the webserver
38 elspeth 717 cd $HOME/src/svn/esys13/trunk/release/doc
39 elspeth 716 echo "Copying python docs to the webserver" > /tmp/scp_msgs.txt 2>&1
40     scp -r epydoc/* shake200:/home/www/esys/esys13/release/epydoc >> /tmp/scp_msgs.txt 2>&1
41 elspeth 717 echo "Copying user guide (pdf/html) to the webserver" >> /tmp/scp_msgs.txt 2>&1
42     scp -r user/html/* shake200:/home/www/esys/esys13/release/user/html >> /tmp/scp_msgs.txt 2>&1
43     scp user/guide.pdf shake200:/home/www/esys/esys13/release/user >> /tmp/scp_msgs.txt 2>&1
44    
45 elspeth 716 #echo "Copying C++ docs to the webserver" >> /tmp/scp_msgs.txt 2>&1
46     #scp -i ~/.cron-ess-rsync-key -r doxygen/ shake200:/home/www/esys/ >> /tmp/scp_msgs.txt 2>&1
47    
48     # make an html file to link to the errors if any
49     echo "<html>" > /tmp/docbuildlog.html
50     echo "<head>" >> /tmp/docbuildlog.html
51     echo "<title>Documentation autobuild log files</title>" >> /tmp/docbuildlog.html
52     echo "</head>" >> /tmp/docbuildlog.html
53     echo "<body>" >> /tmp/docbuildlog.html
54     DATE=`date`
55     echo "<b>Last Update: $DATE</b>" >> /tmp/docbuildlog.html
56     echo "<p>" >> /tmp/docbuildlog.html
57     echo "<a href=\"svn_msgs.txt\">svn_msgs.txt</a><br>" >> /tmp/docbuildlog.html
58     echo "<a href=\"scons_msgs.txt\">scons_msgs.txt</a><br>" >> /tmp/docbuildlog.html
59     echo "<a href=\"doxygen_msgs.txt\">doxygen_msgs.txt</a><br>" >> /tmp/docbuildlog.html
60     echo "<a href=\"epydoc_msgs.txt\">epydoc_msgs.txt</a><br>" >> /tmp/docbuildlog.html
61     echo "<a href=\"scp_msgs.txt\">scp_msgs.txt</a><br>" >> /tmp/docbuildlog.html
62     echo "</p>" >> /var/tmp/docbuildlog.html
63     echo "</body>" >> /var/tmp/docbuildlog.html
64     echo "</html>" >> /var/tmp/docbuildlog.html
65    
66     scp /tmp/svn_msgs.txt shake200:/home/www/esys/esys13/release
67     scp /tmp/scons_msgs.txt shake200:/home/www/esys/esys13/release
68     #scp /tmp/doxygen_msgs.txt shake200:/home/www/esys
69     scp /tmp/epydoc_msgs.txt shake200:/home/www/esys/esys13/release
70     scp /tmp/scp_msgs.txt shake200:/home/www/esys/esys13/release
71    
72     #scp -i ~/.cron-ess-rsync-key /tmp/docbuildlog.html shake200:/home/www/esys/
73    
74     # get back to "here"
75     cd $HERE

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26