#! /bin/bash

#
# 1. change version number
# 2. Execute from pyo folder : ./scripts/release_doc_src.sh
#

version=0.6.6
replace=XXX

doc_rep=pyo_XXX-doc
doc_tar=pyo_XXX-doc.tar.bz2

src_rep=pyo_XXX-src
src_tar=pyo_XXX-src.tar.bz2

cp -R ./doc/manual ./doc/${doc_rep/$replace/$version}
cd doc
tar -cjvf ${doc_tar/$replace/$version} ${doc_rep/$replace/$version}
rm -R ${doc_rep/$replace/$version}
cd ..

svn export . ${src_rep/$replace/$version}
tar -cjvf ${src_tar/$replace/$version} ${src_rep/$replace/$version}
rm -R ${src_rep/$replace/$version}
