Blame Extras/Trac/install.sh

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