#!/bin/bash
# makefile
#
# BEFORE running makefile, do the following steps:
# 1. change the version number in setup.py
# 2. change the version number in Doxyfile
# 
# makefile is the bash script to do the following for wyckedsceptre:
#  1. Get a build version (in x.y.z format)
#  2. Build the documentation using Doxygen
#  3. Build the MANIFEST file that includes documentation and all files
#  4. Build the .tar.gz source distribution
#  5. Build a .deb (Debian) distribution (based off the .tar.gz)
#
# Project home: http://code.google.com/p/wyckedsceptre/
#
# Sources:
# http://pypi.python.org/pypi/stdeb
# http://docs.python.org/distutils/introduction.html

## ver_num=$1
## echo $ver_num
## filename=wyckedsceptre-$1.tar.gz
## echo $filename

## create the documentation
doxygen Doxyfile

## remove the pyc files
rm --recursive *.pickle
rm --recursive *.pyc
rm --recursive *.pyo

## build the MANIFEST file
python make_manifest.py

## build the .tar.gz distro file
python setup.py sdist

## build the .deb debian distro file
## python setup.py --command-packages=stdeb.command bdist_deb
