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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 719 - (hide annotations)
Thu Apr 27 08:38:07 2006 UTC (14 years, 5 months ago) by elspeth
File MIME type: application/x-sh
File size: 3322 byte(s)
Added example files to upload

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 elspeth 719 echo "Copying example zip and tarball files" >> /tmp/scp_msgs.txt 2>&1
45     scp escript_examples.tar.gz shake200:/home/www/esys/esys13/release/escript_examples.tar.gz >> /tmp/scp_msgs.txt 2>&1
46     scp escript_examples.zip shake200:/home/www/esys/esys13/release/escript_examples.zip >> /tmp/scp_msgs.txt 2>&1
47 elspeth 717
48 elspeth 716 #echo "Copying C++ docs to the webserver" >> /tmp/scp_msgs.txt 2>&1
49     #scp -i ~/.cron-ess-rsync-key -r doxygen/ shake200:/home/www/esys/ >> /tmp/scp_msgs.txt 2>&1
50    
51     # make an html file to link to the errors if any
52 elspeth 718 echo "<html>" > /tmp/docbuildlogrelease.html
53     echo "<head>" >> /tmp/docbuildlogrelease.html
54     echo "<title>Documentation autobuild log files</title>" >> /tmp/docbuildlogrelease.html
55     echo "</head>" >> /tmp/docbuildlogrelease.html
56     echo "<body>" >> /tmp/docbuildlogrelease.html
57 elspeth 716 DATE=`date`
58 elspeth 718 echo "<b>Last Update: $DATE</b>" >> /tmp/docbuildlogrelease.html
59     echo "<p>" >> /tmp/docbuildlogrelease.html
60     echo "<a href=\"svn_msgs.txt\">svn_msgs.txt</a><br>" >> /tmp/docbuildlogrelease.html
61     echo "<a href=\"scons_msgs.txt\">scons_msgs.txt</a><br>" >> /tmp/docbuildlogrelease.html
62     echo "<a href=\"doxygen_msgs.txt\">doxygen_msgs.txt</a><br>" >> /tmp/docbuildlogrelease.html
63     echo "<a href=\"epydoc_msgs.txt\">epydoc_msgs.txt</a><br>" >> /tmp/docbuildlogrelease.html
64     echo "<a href=\"scp_msgs.txt\">scp_msgs.txt</a><br>" >> /tmp/docbuildlogrelease.html
65 elspeth 719 echo "</p>" >> /tmp/docbuildlogrelease.html
66     echo "</body>" >> /tmp/docbuildlogrelease.html
67     echo "</html>" >> /tmp/docbuildlogrelease.html
68 elspeth 716
69     scp /tmp/svn_msgs.txt shake200:/home/www/esys/esys13/release
70     scp /tmp/scons_msgs.txt shake200:/home/www/esys/esys13/release
71     #scp /tmp/doxygen_msgs.txt shake200:/home/www/esys
72     scp /tmp/epydoc_msgs.txt shake200:/home/www/esys/esys13/release
73     scp /tmp/scp_msgs.txt shake200:/home/www/esys/esys13/release
74 elspeth 719 scp /tmp/docbuildlogrelease.html shake200:/home/www/esys/esys13/release
75 elspeth 716 #scp -i ~/.cron-ess-rsync-key /tmp/docbuildlog.html shake200:/home/www/esys/
76    
77     # get back to "here"
78     cd $HERE

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26