From 38da286429caba91e15a76dee4efe1f5b499ff6b Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 4 Oct 2006 01:46:15 +0000 Subject: [PATCH] Tabs to spaces git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4558 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/docs.sh | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/pmd/docs.sh b/pmd/docs.sh index e7dbd7be64..35932225a0 100755 --- a/pmd/docs.sh +++ b/pmd/docs.sh @@ -3,51 +3,51 @@ option="${1}" if [ -z $option ]; then - echo "Generating from pom, regenerating ruleset docs, and transforming" + echo "Generating from pom, regenerating ruleset docs, and transforming" `./munge_rulesets.rb` - maven -qb pmd:rulesets-index xdoc:generate-from-pom + maven -qb pmd:rulesets-index xdoc:generate-from-pom maven -qb pmd:ruleset-docs rm -f rulesets/*.xml cvs -q up rulesets maven -qb xdoc:transform elif [ $option = "all" ]; then - echo "Running maven site" - rm -rf target + echo "Running maven site" + rm -rf target `./munge_rulesets.rb` - maven -qb site + maven -qb site rm -f rulesets/*.xml cvs -q up rulesets elif [ $option = "uploadcurrent" ]; then - echo "Generating xdocs and uploading" + echo "Generating xdocs and uploading" `./munge_rulesets.rb` - maven -qb pmd:rulesets-index xdoc:generate-from-pom + maven -qb pmd:rulesets-index xdoc:generate-from-pom maven -qb pmd:ruleset-docs rm -f rulesets/*.xml cvs -q up rulesets maven -qb xdoc:transform - DOCS_FILE=docs.tar.gz - cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/ - cd target - rm -f $DOCS_FILE - tar zcf $DOCS_FILE docs/ - scp -i ~/.ssh/identity $DOCS_FILE tomcopeland@pmd.sourceforge.net:/home/groups/p/pm/pmd/htdocs/current/ - cd ../ + DOCS_FILE=docs.tar.gz + cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/ + cd target + rm -f $DOCS_FILE + tar zcf $DOCS_FILE docs/ + scp -i ~/.ssh/identity $DOCS_FILE tomcopeland@pmd.sourceforge.net:/home/groups/p/pm/pmd/htdocs/current/ + cd ../ ssh -l tomcopeland pmd.sourceforge.net "cd /home/groups/p/pm/pmd/htdocs/current/ && tar -zxf docs.tar.gz && cp -R docs/* . && rm -rf docs && rm docs.tar.gz" elif [ $option = "upload" ]; then - echo "Uploading xdocs" - DOCS_FILE=docs.tar.gz - cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/ - cd target - rm -f $DOCS_FILE - tar zcf $DOCS_FILE docs/ + echo "Uploading xdocs" + DOCS_FILE=docs.tar.gz + cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/ + cd target + rm -f $DOCS_FILE + tar zcf $DOCS_FILE docs/ echo "Starting secure copy" - scp -i ~/.ssh/identity $DOCS_FILE tomcopeland@pmd.sourceforge.net:/home/groups/p/pm/pmd/ - cd ../ - ssh -l tomcopeland pmd.sourceforge.net "cd /home/groups/p/pm/pmd/ && rm -rf xref && rm -rf apidocs && ./update_docs.sh" + scp -i ~/.ssh/identity $DOCS_FILE tomcopeland@pmd.sourceforge.net:/home/groups/p/pm/pmd/ + cd ../ + ssh -l tomcopeland pmd.sourceforge.net "cd /home/groups/p/pm/pmd/ && rm -rf xref && rm -rf apidocs && ./update_docs.sh" fi if [ -e velocity.log ]; then - rm velocity.log + rm velocity.log fi if [ -e maven.log ]; then - rm maven.log + rm maven.log fi