Blame Artworks/Webenv/Trac/0.10.4/Modern/install.sh

Alain Reguera Delgado 46de3c
#!/bin/bash
Alain Reguera Delgado 46de3c
#  Theme Name : TreeFlower
Alain Reguera Delgado 46de3c
#   Theme URI : http://wiki.centos.org/ArtWork/ThemeDesign/Trac/
Alain Reguera Delgado 46de3c
# Description : This is the TreeFlower theme installation
Alain Reguera Delgado 46de3c
# 		for the application we use to manage projects (Trac).
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
#   $Revision: 2505 $
Alain Reguera Delgado 46de3c
#     $Author: al $
Alain Reguera Delgado 46de3c
#       $Date: 2008-12-25 03:00:40 -0500 (Thu, 25 Dec 2008) $
Alain Reguera Delgado 46de3c
# -----------------------------------------------------------------
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
EXPORTDIR=theme-trac
Alain Reguera Delgado 46de3c
SVNREPDIR=https://projects.centos.org/svn/artwork/trunk/Extras/Trac/
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 $SVNREPDIR   $EXPORTDIR --force --quiet
Alain Reguera Delgado 46de3c
		/bin/cp -r $EXPORTDIR/htdocs/* /usr/share/trac/htdocs/
Alain Reguera Delgado 46de3c
		/bin/cp -r $EXPORTDIR/templates/* /usr/share/trac/templates/
Alain Reguera Delgado 46de3c
        /bin/cp ArtworkToc.py   /usr/share/trac/wiki-macros/
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 -r htdocs/* /usr/share/trac/htdocs/
Alain Reguera Delgado 46de3c
	/bin/cp -r templates/* /usr/share/trac/templates/
Alain Reguera Delgado 46de3c
    /bin/cp ArtworkToc.py   /usr/share/trac/wiki-macros/
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 " install.sh: The trac theme was install successfully!" 
Alain Reguera Delgado 46de3c
echo '--------------'