Blame Artworks/Webenv/Puntal/install.sh

Alain Reguera Delgado 46de3c
#!/bin/bash
Alain Reguera Delgado 46de3c
# Puntal Theme installation script.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
PUNTAL_PATH=/var/www/html/puntal
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
EXPORTDIR=tmp_puntal
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
SVNREPODIR=https://projects.centos.org/svn/artwork/trunk/Extras/Puntal
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/themes/punbb/* $PUNTAL_PATH/themes/punbb/;
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 themes/punbb/* $PUNTAL_PATH/themes/punbb/;
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
fi 
Alain Reguera Delgado 46de3c