Blame Artworks/Webenv/Punbb/install.sh

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