| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| EXPORTDIR=tmp_mantis |
| |
| if [ "$@" ]; then |
| |
| for i in "$@";do |
| case $i in |
| --subversion | -s ) |
| svn export http://localhost/svn/artwork/branches/MantisThemeDesign/VioletBugs/ $EXPORTDIR --force --quiet |
| /bin/cp $EXPORTDIR/css/* /usr/share/mantis/css/ |
| /bin/cp -r $EXPORTDIR/images/* /usr/share/mantis/images/ |
| /bin/cp $EXPORTDIR/*.html /usr/share/mantis/ |
| /bin/rm -r $EXPORTDIR;; |
| esac |
| done |
| else |
| |
| /bin/cp css/* /usr/share/mantis/css/ |
| /bin/cp -r images/* /usr/share/mantis/images/ |
| /bin/cp *.html /usr/share/mantis/core/ |
| fi |
| |
| |
| echo '--------------' |
| echo " $0: The Mantis theme was install successfully!" |
| echo '--------------' |