Blame Extras/Punbb/install.sh

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