forked from pyepics/pyepics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
47 lines (38 loc) · 1.13 KB
/
publish.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
#
# "publish" a new version of the source distribution and documentation
#
# Steps prior to publishing:
# 1. run 'make_wininsts.bat' from a a Windows shell to build dist/*.exe
# 2. run 'python setup.py sdist' from Linux
# 3. verify that the docs build without error.
installdir='/www/apache/htdocs/software/python/pyepics3'
srcdir=$installdir/src
docbuild='doc/_build'
cd doc
make all
cd ../
echo '# Publishing PyEpics Docs'
#cp -pr $docbuild/latex/epics.pdf $installdir/pyepics3.pdf
#cp -pr $docbuild/html/* $installdir/.
echo '# Publishing PyEpics Docs'
mkdir _tmpdoc
cp -pr $docbuild/latex/epics.pdf _tmpdoc/pyepics.pdf
cp -pr $docbuild/html/* _tmpdoc/.
cd _tmpdoc
tar cvzf ../../pyepics_docs.tar.gz .
cd ..
rm -rf _tmpdoc _images _sources _static *.html *.js *.inv pyepics3.pdf
git checkout gh-pages
tar xvzf ../pyepics_docs.tar.gz .
git commit -am "changed docs"
git push
git checkout master
cp ../pyepics_docs.tar.gz $installdir/../.
cd $installdir
tar xvzf ../pyepics_docs.tar.gz .
#
#mv $srcdir/epics* $srcdir/older/.
#cp -pr Changelog INSTALL README.txt $srcdir/.
#cp -pr dist/* $srcdir/.
#