Blame Identity/Webenv/Punbb/install.sh

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