forked from prjemian/hdf5gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.sh
executable file
·40 lines (30 loc) · 857 Bytes
/
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
#!/bin/bash
########### SVN repository information ###################
# $Date$
# $Author$
# $Revision$
# $URL$
# $Id$
########### SVN repository information ###################
# Use this script to (re)publish the documentation
export PATH=/APSshare/epd/rh5-x86/bin:$PATH
export PROJECT="HDF5gateway"
export TARGET_DIR=/home/joule/SVN/subversion/small_angle
#/home/joule/SVN/subversion/small_angle/projects/hdfgateway
echo "Updating from subversion repository"
svn update
echo "rebuilding the documentation"
make clean
python extractor.py
make latexpdf
cp _build/latex/HDF5gateway.pdf ./
make html
echo "Removing the old build, if it exists"
/bin/rm -rf $TARGET_DIR/$PROJECT
echo "Copying the rebuilt web site"
cd _build
mv html $PROJECT
tar cf - $PROJECT | (cd $TARGET_DIR && tar xf -)
/bin/rm -rf $PROJECT
cd ..
echo "Done publishing $PROJECT"