Blame Identity/Webenv/Themes/Default/Mantis/1.1.2/VioletBugs/install.sh

ef5584
#!/bin/bash
ef5584
#  Theme Name : VioletBugs 
ef5584
#   Theme URI : 
ef5584
# Description : VioletBugs is a patch based on TreeFlower
ef5584
#               theme used to retheme the Mantis default application.
ef5584
#
ef5584
#		To install this patch you need to install the
ef5584
#		TreeFlower theme first. Then use this script to update
ef5584
#		the css and header files.
ef5584
#
ef5584
#		The main changes in this patch are the colors (from
ef5584
#		blue to green) and the artistic motive used (from
ef5584
#		flowers to bugs.)
ef5584
#
ef5584
#      Author : The CentOS Artwork SIG.
ef5584
#     Licence : This CSS design is released under GPL (
ef5584
#               http://www.opensource.org/licenses/gpl-license.php)
ef5584
 
ef5584
ef5584
EXPORTDIR=tmp_mantis
ef5584
ef5584
if [ "$@" ]; then
ef5584
ef5584
	for i in "$@";do
ef5584
	case $i in
ef5584
	   --subversion | -s	)
ef5584
		svn export http://localhost/svn/artwork/branches/MantisThemeDesign/VioletBugs/ $EXPORTDIR --force --quiet
ef5584
		/bin/cp $EXPORTDIR/css/* /usr/share/mantis/css/
ef5584
		/bin/cp -r $EXPORTDIR/images/* /usr/share/mantis/images/
ef5584
		/bin/cp $EXPORTDIR/*.html /usr/share/mantis/
ef5584
		/bin/rm -r $EXPORTDIR;;
ef5584
	esac
ef5584
	done
ef5584
else
ef5584
ef5584
	/bin/cp css/* /usr/share/mantis/css/
ef5584
	/bin/cp -r images/* /usr/share/mantis/images/
ef5584
	/bin/cp *.html /usr/share/mantis/core/
ef5584
fi 
ef5584
ef5584
# Final output
ef5584
echo '--------------'
ef5584
echo " $0: The Mantis theme was install successfully!" 
ef5584
echo '--------------'