File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ installdir=' /www/apache/htdocs/software/python/asteval'
2+ docbuild=' doc/_build'
3+ proj=' asteval'
4+ pdfname=' $proj.pdf'
5+ cd doc
6+ echo ' # Making docs'
7+ make all
8+ cd ../
9+
10+ echo ' # Building tarball of docs'
11+ mkdir _tmpdoc
12+ cp -pr doc/$proj .pdf _tmpdoc/$proj .pdf
13+ cp -pr doc/_build/html/* _tmpdoc/.
14+ cd _tmpdoc
15+ tar czf ../../$proj_docs .tar.gz .
16+ cd ..
17+ rm -rf _tmpdoc
18+
19+ #
20+ echo " # Switching to gh-pages branch"
21+ git checkout gh-pages
22+
23+ if [ $? -ne 0 ] ; then
24+ echo ' failed.'
25+ exit
26+ fi
27+
28+ tar xzf ../$proj_docs .tar.gz .
29+
30+ echo " # commit changes to gh-pages branch"
31+ git add * .html
32+ git commit -am " changed docs"
33+
34+ if [ $? -ne 0 ] ; then
35+ echo ' failed.'
36+ exit
37+ fi
38+
39+ echo " # Pushing docs to github"
40+ git push
41+
42+ echo " # switch back to master branch"
43+ git checkout master
44+
45+ if [ $? -ne 0 ] ; then
46+ echo ' failed.'
47+ exit
48+ fi
49+
50+ # install locally
51+ echo " # Installing docs to CARS web pages"
52+ cp ../$proj_docs .tar.gz $installdir /..
53+
54+ cd $installdir
55+ if [ $? -ne 0 ] ; then
56+ echo ' failed.'
57+ exit
58+ fi
59+
60+ tar xvzf ../$proj_docs .tar.gz
You can’t perform that action at this time.
0 commit comments