File: build.command

package info (click to toggle)
python-pymzml 0.7.6-dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 66,128 kB
  • ctags: 335
  • sloc: python: 2,428; makefile: 142; sh: 38
file content (31 lines) | stat: -rwxr-xr-x 794 bytes parent folder | download | duplicates (2)
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
#!/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
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