Blame Extras/Mantis/install.sh

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