Blame Identity/Webenv/App/Mantis/install.sh

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