forked from pymzml/pymzML
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.command
More file actions
executable file
·32 lines (25 loc) · 838 Bytes
/
build.command
File metadata and controls
executable file
·32 lines (25 loc) · 838 Bytes
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
#!/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/pymzml.pdf Documentation/
cp Documentation_src/build/latex/pymzml.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
python setup.py sdist --formats=zip
cd dist
# tar xvfj *.bz2
cd ..
# Copying packages to Website
# cp dist/pymzml*.zip Website/dist/pymzml.zip
# cp dist/pymzml*.tar.bz2 Website/dist/pymzml.tar.bz2