Blame Extras/Mantis/1.1.2-1.fc9-violet/install.sh

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