#!/bin/sh PUBLISH_DOCS_FILE="../spbx-docs.zip" ### REMOVE ALL echo -n "Removing outdated files... " svn up --quiet svn rm --quiet --force *.zip find ./ -name "*.zip" -delete echo "Done" echo -n "Copy files, please wait ...... " cp ../drivers/release/*.zip ./ echo " Done" rm -rf docs mkdir docs svn co http://new.vcs.dev.synway.net/svn/spbx/spbx-drivers/source/4.Trunk/docs/release ./docs cd docs rm -rf `find . -name ".svn"` echo -n "Create Documents, please wait ...... " zip -qr $PUBLISH_DOCS_FILE * echo " Done" cd .. rm -rf docs svn add *.zip echo -e "\E[1;31m""[INFO] Please commit your files!""\E[0m"