Skip to content

Commit

Permalink
Cleanup and simplify the Linux build script
Browse files Browse the repository at this point in the history
1. Use python setup.py sdist instead of building the tarball by hand
2. Store resulting packages in a single 'packages' directory
3. Some minor cleanup/simplification
  • Loading branch information
ethanwhite committed Feb 5, 2014
1 parent 1c986f6 commit 49b05a5
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
#!/bin/bash

# create src folder
sudo rm src -rf
mkdir src
mkdir src/retriever
cp -r app/ src/
cp -r lib/ src/
cp -r engines/ src/
cp __init__.py src
cp main.py src
cp setup.py src

# setup
sudo python setup.py install
python version.py
sudo rm build dist __init__.pyc deb_dist packages -rf
mkdir packages

# create source tarball
sudo python setup.py sdist
sudo mv dist/*.tar.gz packages

# build deb package
sudo python setup.py --command-packages=stdeb.command bdist_deb
sudo rm retriever.egg-info build dist __init__.pyc -rf
sudo rm linux -rf
mkdir linux
sudo mv deb_dist/*.deb linux
sudo rm deb_dist -rf

# build src package
tar czvf retriever-src.tar.gz src
sudo mv deb_dist/*.deb packages
sudo rm retriever.egg-info build dist __init__.pyc deb_dist -rf

0 comments on commit 49b05a5

Please sign in to comment.