Blame Identity/Webenv/App/Trac/install.sh

f2e824
#!/bin/bash
f2e824
#  Theme Name : TreeFlower
f2e824
#   Theme URI : http://wiki.centos.org/ArtWork/ThemeDesign/Trac/
f2e824
# Description : This is the TreeFlower theme installation
f2e824
# 		for the application we use to manage projects (Trac).
f2e824
#      Author : The CentOS Artwork SIG.
f2e824
#     Licence : This CSS design is released under GPL (
f2e824
#               http://www.opensource.org/licenses/gpl-license.php)
f2e824
# -----------------------------------------------------------------
f2e824
#   $Revision: 2505 $
f2e824
#     $Author: al $
f2e824
#       $Date: 2008-12-25 03:00:40 -0500 (Thu, 25 Dec 2008) $
f2e824
# -----------------------------------------------------------------
f2e824
f2e824
EXPORTDIR=theme-trac
f2e824
SVNREPDIR=https://projects.centos.org/svn/artwork/trunk/Extras/Trac/
f2e824
f2e824
if [ "$@" ]; then
f2e824
f2e824
	for i in "$@";do
f2e824
	case $i in
f2e824
	   --subversion | -s	)
f2e824
		svn export $SVNREPDIR   $EXPORTDIR --force --quiet
f2e824
		/bin/cp -r $EXPORTDIR/htdocs/* /usr/share/trac/htdocs/
f2e824
		/bin/cp -r $EXPORTDIR/templates/* /usr/share/trac/templates/
f2e824
        /bin/cp ArtworkToc.py   /usr/share/trac/wiki-macros/
f2e824
		/bin/rm -r $EXPORTDIR;;
f2e824
	esac
f2e824
	done
f2e824
else
f2e824
f2e824
	/bin/cp -r htdocs/* /usr/share/trac/htdocs/
f2e824
	/bin/cp -r templates/* /usr/share/trac/templates/
f2e824
    /bin/cp ArtworkToc.py   /usr/share/trac/wiki-macros/
f2e824
fi 
f2e824
f2e824
# Final output
f2e824
echo '--------------'
f2e824
echo " install.sh: The trac theme was install successfully!" 
f2e824
echo '--------------'