#!/bin/sh
export CS_VERSION="6.17.0"
export RELEASE_DIR=csound-web-${CS_VERSION}

#remove backup files ending with ~
find . -name "*~" -exec rm {} \;

rm -rf $RELEASE_DIR
mkdir $RELEASE_DIR
cp -R examples ${RELEASE_DIR}/
rm ${RELEASE_DIR}/examples/update-scripts.sh
# documentation
./src/mkdoc.sh ${PWD}/${RELEASE_DIR}/docs

cp README-RELEASE.md ${RELEASE_DIR}/README.md
zip -r ${RELEASE_DIR}.zip ${RELEASE_DIR}
