Blame Identity/Webenv/Mantis/install.sh

ef5584
#!/bin/bash
ef5584
#
ef5584
#
ef5584
ef5584
EXPORTDIR=tmp_mantis
ef5584
ef5584
echo 'Select the customization:'
ef5584
select VERSION in `find . -maxdepth 1 -type d \
ef5584
		   | egrep -v '^\.$' \
ef5584
		   | egrep -v 'svn' \
ef5584
		   | sed 's/\.\///'`;do
ef5584
	break;
ef5584
done
ef5584
ef5584
SVNREPODIR=http://centos.org/svn/artwork/trunk/Extras/Mantis/$VERSION
ef5584
ef5584
echo 'Creating local copy ...'
ef5584
svn export $SVNREPODIR $EXPORTDIR --force --quiet
ef5584
echo 'Copying css directory ...'
ef5584
/bin/cp $EXPORTDIR/css/* 	/usr/share/mantis/css/
ef5584
echo 'Copying images directory ...'
ef5584
/bin/cp -r $EXPORTDIR/images/* 	/usr/share/mantis/images/
ef5584
echo 'Copying core directory ...'
ef5584
/bin/cp $EXPORTDIR/core/* 	/usr/share/mantis/core/
ef5584
echo 'Copying lang directory ...'
ef5584
/bin/cp $EXPORTDIR/lang/* 	/usr/share/mantis/lang/
ef5584
echo 'Copying html files ...'
ef5584
/bin/cp $EXPORTDIR/*.html 	/usr/share/mantis/
ef5584
echo 'Copying php files ...'
ef5584
/bin/cp $EXPORTDIR/*.php 	/usr/share/mantis/
ef5584
/bin/rm -r $EXPORTDIR