Blame Identity/Webenv/Trac/install.sh

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