-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.command
executable file
·36 lines (29 loc) · 1.01 KB
/
build.command
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
# !/bin/bash
mkdir Documentation
rm -rf Documentation/*
rm -rf Website/dist/*
rm -rf Documentation_src/build/*
# Evoke Sphinx to create html and pdf documentation
cd Documentation_src
make html latexpdf
cd ..
# Copying pdf documentation to Documentation and Website
cp Documentation_src/build/latex/pyGCluster.pdf Documentation/
cp Documentation_src/build/latex/pyGCluster.pdf Website/dist/
# Copying html documentation to Documentation and Website
cp -R Documentation_src/build/html Documentation/html
cp -R Documentation_src/build/html/* Website/
rm -rf dist/*
# Creating Python packages
python setup.py sdist --formats=bztar,gztar,zip
cd dist
tar xvfj *.bz2
cd ..
# Copying packages to Website
if [ -d 'Website' ]; then
echo 'Folder Website exists...'
else
echo 'Please clone pyGCluster website repository with command git clone https://github.com/pygcluster/pygcluster.github.io.git Website'
fi
cp dist/pyGCluster*.zip Website/dist/pyGCluster.zip
cp dist/pyGCluster*.tar.bz2 Website/dist/pyGCluster.tar.bz2