| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| EXPORTDIR=theme-trac |
| SVNREPDIR=https://projects.centos.org/svn/artwork/trunk/Extras/Trac/ |
| |
| if [ "$@" ]; then |
| |
| for i in "$@";do |
| case $i in |
| --subversion | -s ) |
| svn export $SVNREPDIR $EXPORTDIR --force --quiet |
| /bin/cp -r $EXPORTDIR/htdocs/* /usr/share/trac/htdocs/ |
| /bin/cp -r $EXPORTDIR/templates/* /usr/share/trac/templates/ |
| /bin/cp ArtworkToc.py /usr/share/trac/wiki-macros/ |
| /bin/rm -r $EXPORTDIR;; |
| esac |
| done |
| else |
| |
| /bin/cp -r htdocs/* /usr/share/trac/htdocs/ |
| /bin/cp -r templates/* /usr/share/trac/templates/ |
| /bin/cp ArtworkToc.py /usr/share/trac/wiki-macros/ |
| fi |
| |
| |
| echo '--------------' |
| echo " install.sh: The trac theme was install successfully!" |
| echo '--------------' |