forked from bernardokyotoku/pylibdaqmx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mk_apidocs.sh
executable file
·27 lines (22 loc) · 902 Bytes
/
mk_apidocs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
PYTHONPATH=`pwd`:$PYTHONPATH
cd doc && make html || exit 1
cd -
exit 0
# Execute the following commands in apidocs/ when
# new documentation files are added to the svn repository:
#svn propset svn:mime-type text/css *.css
#svn propset svn:mime-type text/html *.html
#svn propset svn:mime-type image/png *.png
#svn propset svn:mime-type text/javascript *.js
#rm -rf apidocs/.buildinfo doc/_build doc/source/generated # full rebuild
cd doc && make html || exit 1
cd -
cd apidocs
svn propset svn:mime-type text/html *.html */*.html > /dev/null || exit 1
svn propset svn:mime-type text/css */*.css > /dev/null || exit 1
svn propset svn:mime-type text/javascript *.js */*.js > /dev/null || exit 1
svn propset svn:mime-type image/png */*.png > /dev/null || exit 1
cd -
#echo Applying 's/.py#L/.py#/g' to all html files to support Google Code.
#perl -p -i -e 's/.py#L/.py#/g' apidocs/*.html