Blame Identity/Models/Html/Punbb/install.sh

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