Blame Identity/Webenv/App/Punbb/install.sh

f2e824
#!/bin/bash
f2e824
# Install Punbb TreeFlower files.
f2e824
f2e824
PUNBB_PATH=/var/www/html/punbb
f2e824
f2e824
EXPORTDIR=tmp_punbb
f2e824
f2e824
SVNREPODIR=https://projects.centos.org/svn/artwork/trunk/Extras/Punbb
f2e824
f2e824
if [ "$@" ]; then
f2e824
f2e824
	for i in "$@";do
f2e824
	case $i in
f2e824
	   --subversion | -s	)
f2e824
		svn export $SVNREPODIR $EXPORTDIR --force --quiet
f2e824
		/bin/cp -r $EXPORTDIR/style/* $PUNBB_PATH/style/;
f2e824
		/bin/cp -r $EXPORTDIR/img/* $PUNBB_PATH/img/;
f2e824
		/bin/cp $EXPORTDIR/*.php $PUNBB_PATH/;
f2e824
		/bin/rm -r $EXPORTDIR;;
f2e824
	esac
f2e824
	done
f2e824
else
f2e824
f2e824
	/bin/cp -r style/* $PUNBB_PATH/style/;
f2e824
	/bin/cp -r img/* $PUNBB_PATH/img/;
f2e824
	/bin/cp *.php $PUNBB_PATH/;
f2e824
fi