Blame Identity/Models/Html/Trac/install.sh

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