Blame Identity/Models/Html/Mantis/install.sh

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