Blame Artworks/Webenv/Mantis/1.1.2/BlueBugs/install.sh

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