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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 716 - (show annotations)
Thu Apr 27 07:55:27 2006 UTC (14 years, 3 months ago) by elspeth
File MIME type: application/x-sh
File size: 2588 byte(s)
Added a script for uploading docs to the release dir on the webserver.

1 #!/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 cd $HOME/src/svn/esys13/trunk/doc/
39 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 #echo "Copying C++ docs to the webserver" >> /tmp/scp_msgs.txt 2>&1
42 #scp -i ~/.cron-ess-rsync-key -r doxygen/ shake200:/home/www/esys/ >> /tmp/scp_msgs.txt 2>&1
43
44 # make an html file to link to the errors if any
45 echo "<html>" > /tmp/docbuildlog.html
46 echo "<head>" >> /tmp/docbuildlog.html
47 echo "<title>Documentation autobuild log files</title>" >> /tmp/docbuildlog.html
48 echo "</head>" >> /tmp/docbuildlog.html
49 echo "<body>" >> /tmp/docbuildlog.html
50 DATE=`date`
51 echo "<b>Last Update: $DATE</b>" >> /tmp/docbuildlog.html
52 echo "<p>" >> /tmp/docbuildlog.html
53 echo "<a href=\"svn_msgs.txt\">svn_msgs.txt</a><br>" >> /tmp/docbuildlog.html
54 echo "<a href=\"scons_msgs.txt\">scons_msgs.txt</a><br>" >> /tmp/docbuildlog.html
55 echo "<a href=\"doxygen_msgs.txt\">doxygen_msgs.txt</a><br>" >> /tmp/docbuildlog.html
56 echo "<a href=\"epydoc_msgs.txt\">epydoc_msgs.txt</a><br>" >> /tmp/docbuildlog.html
57 echo "<a href=\"scp_msgs.txt\">scp_msgs.txt</a><br>" >> /tmp/docbuildlog.html
58 echo "</p>" >> /var/tmp/docbuildlog.html
59 echo "</body>" >> /var/tmp/docbuildlog.html
60 echo "</html>" >> /var/tmp/docbuildlog.html
61
62 scp /tmp/svn_msgs.txt shake200:/home/www/esys/esys13/release
63 scp /tmp/scons_msgs.txt shake200:/home/www/esys/esys13/release
64 #scp /tmp/doxygen_msgs.txt shake200:/home/www/esys
65 scp /tmp/epydoc_msgs.txt shake200:/home/www/esys/esys13/release
66 scp /tmp/scp_msgs.txt shake200:/home/www/esys/esys13/release
67
68 #scp -i ~/.cron-ess-rsync-key /tmp/docbuildlog.html shake200:/home/www/esys/
69
70 # get back to "here"
71 cd $HERE

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26