From 85a3e439c9b9ef7099ef197a9774c5aebdea34e1 Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Mon, 8 May 2017 14:20:19 -0500 Subject: [PATCH] Removes tabs from .sh files Change-Id: I07f983cb70b5398727b0e92e17057b8cf72e281d --- genresults-openreviews.sh | 50 +++++++++++++++++----------------- genresults-reviewers.sh | 34 +++++++++++------------ genresults-reviews-for-bugs.sh | 18 ++++++------ 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/genresults-openreviews.sh b/genresults-openreviews.sh index e6601eb..83b76c6 100755 --- a/genresults-openreviews.sh +++ b/genresults-openreviews.sh @@ -4,8 +4,8 @@ projects=$1 all=0 if [ "$projects" = "" ] ; then - projects=projects/*.json - all=1 + projects=projects/*.json + all=1 fi mkdir -p results @@ -14,43 +14,43 @@ rm -f results/*-openreviews* rm -f results/*-openapproved* if [ -n "${GERRIT_USER}" ] ; then - EXTRA_ARGS="-u ${GERRIT_USER}" + EXTRA_ARGS="-u ${GERRIT_USER}" fi if [ -n "${GERRIT_KEY}" ]; then - EXTRA_ARGS="${EXTRA_ARGS} -k ${GERRIT_KEY}" + EXTRA_ARGS="${EXTRA_ARGS} -k ${GERRIT_KEY}" fi if [ -n "${GERRIT_SERVER}" ]; then - EXTRA_ARGS="${EXTRA_ARGS} --server ${GERRIT_SERVER}" + EXTRA_ARGS="${EXTRA_ARGS} --server ${GERRIT_SERVER}" fi metadata() { - date -u - echo -n "reviewstats HEAD: " - git rev-parse HEAD - echo + date -u + echo -n "reviewstats HEAD: " + git rev-parse HEAD + echo } for project in ${projects} ; do - project_base=$(basename $(echo ${project} | cut -f1 -d'.')) - (metadata > results/${project_base}-openreviews.txt && openreviews -p ${project} -l 15 ${EXTRA_ARGS} -o results/${project_base}-openreviews.txt) - openreviews -p ${project} --html -l 15 ${EXTRA_ARGS} -o results/${project_base}-openreviews.html - (metadata && openapproved -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt + project_base=$(basename $(echo ${project} | cut -f1 -d'.')) + (metadata > results/${project_base}-openreviews.txt && openreviews -p ${project} -l 15 ${EXTRA_ARGS} -o results/${project_base}-openreviews.txt) + openreviews -p ${project} --html -l 15 ${EXTRA_ARGS} -o results/${project_base}-openreviews.html + (metadata && openapproved -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt done if [ "${all}" = "1" ] ; then - (metadata && openreviews -a ${EXTRA_ARGS}) > results/all-openreviews.txt.tmp - for f in results/*-openreviews.txt ; do - (echo && cat $f) >> results/all-openreviews.txt.tmp - done - mv results/all-openreviews.txt.tmp results/all-openreviews.txt - openreviews -a --html ${EXTRA_ARGS} | grep -v '' > results/all-openreviews.html.tmp - for f in results/*-openreviews.html ; do - cat $f | grep -v 'html>' | grep -v 'head>' >> results/all-openreviews.html.tmp - done - echo "" >> results/all-openreviews.html.tmp - mv results/all-openreviews.html.tmp results/all-openreviews.html + (metadata && openreviews -a ${EXTRA_ARGS}) > results/all-openreviews.txt.tmp + for f in results/*-openreviews.txt ; do + (echo && cat $f) >> results/all-openreviews.txt.tmp + done + mv results/all-openreviews.txt.tmp results/all-openreviews.txt + openreviews -a --html ${EXTRA_ARGS} | grep -v '' > results/all-openreviews.html.tmp + for f in results/*-openreviews.html ; do + cat $f | grep -v 'html>' | grep -v 'head>' >> results/all-openreviews.html.tmp + done + echo "" >> results/all-openreviews.html.tmp + mv results/all-openreviews.html.tmp results/all-openreviews.html - (metadata && openapproved -a ${EXTRA_ARGS}) > results/all-openapproved.txt + (metadata && openapproved -a ${EXTRA_ARGS}) > results/all-openapproved.txt fi diff --git a/genresults-reviewers.sh b/genresults-reviewers.sh index 4227350..9766da2 100755 --- a/genresults-reviewers.sh +++ b/genresults-reviewers.sh @@ -4,8 +4,8 @@ projects=$1 all=0 if [ "$projects" = "" ] ; then - projects=projects/*.json - all=1 + projects=projects/*.json + all=1 fi mkdir -p results @@ -13,37 +13,37 @@ mkdir -p results rm -f results/*-reviewers-* if [ -n "${GERRIT_USER}" ] ; then - EXTRA_ARGS="-u ${GERRIT_USER}" + EXTRA_ARGS="-u ${GERRIT_USER}" fi if [ -n "${GERRIT_PASS}" ] ; then - EXTRA_ARGS="${EXTRA_ARGS} -P ${GERRIT_PASS}" + EXTRA_ARGS="${EXTRA_ARGS} -P ${GERRIT_PASS}" fi if [ -n "${GERRIT_KEY}" ] ; then - EXTRA_ARGS="${EXTRA_ARGS} -k ${GERRIT_KEY}" + EXTRA_ARGS="${EXTRA_ARGS} -k ${GERRIT_KEY}" fi if [ -n "${GERRIT_SERVER}" ] ; then - EXTRA_ARGS="${EXTRA_ARGS} --server ${GERRIT_SERVER}" + EXTRA_ARGS="${EXTRA_ARGS} --server ${GERRIT_SERVER}" fi metadata() { - date -u - echo -n "reviewstats HEAD: " - git rev-parse HEAD - echo + date -u + echo -n "reviewstats HEAD: " + git rev-parse HEAD + echo } for project in ${projects} ; do - project_base=$(basename $(echo ${project} | cut -f1 -d'.')) - for time in 30 60 90 180 365 1095; do - (metadata && reviewers -p ${project} -d ${time} ${EXTRA_ARGS} -o results/${project_base}-reviewers-${time} --outputs txt --outputs csv) - done + project_base=$(basename $(echo ${project} | cut -f1 -d'.')) + for time in 30 60 90 180 365 1095; do + (metadata && reviewers -p ${project} -d ${time} ${EXTRA_ARGS} -o results/${project_base}-reviewers-${time} --outputs txt --outputs csv) + done done if [ "${all}" = "1" ] ; then - for time in 30 60 90 180 365 1095; do - (metadata && reviewers -a -d ${time} ${EXTRA_ARGS} -o results/all-reviewers-${time} --outputs txt --outputs csv) - done + for time in 30 60 90 180 365 1095; do + (metadata && reviewers -a -d ${time} ${EXTRA_ARGS} -o results/all-reviewers-${time} --outputs txt --outputs csv) + done fi diff --git a/genresults-reviews-for-bugs.sh b/genresults-reviews-for-bugs.sh index f5a0a3c..9ab9261 100755 --- a/genresults-reviews-for-bugs.sh +++ b/genresults-reviews-for-bugs.sh @@ -3,25 +3,25 @@ projects=projects/*.json if [ -n "${GERRIT_USER}" ] ; then - EXTRA_ARGS="-u ${GERRIT_USER}" + EXTRA_ARGS="-u ${GERRIT_USER}" fi if [ -n "${GERRIT_KEY}" ] ; then - EXTRA_ARGS="${EXTRA_ARGS} -k ${GERRIT_KEY}" + EXTRA_ARGS="${EXTRA_ARGS} -k ${GERRIT_KEY}" fi if [ -n "${GERRIT_SERVER}" ] ; then - EXTRA_ARGS="${EXTRA_ARGS} --server ${GERRIT_SERVER}" + EXTRA_ARGS="${EXTRA_ARGS} --server ${GERRIT_SERVER}" fi metadata() { - date -u - echo -n "reviewstats HEAD: " - git rev-parse HEAD - echo + date -u + echo -n "reviewstats HEAD: " + git rev-parse HEAD + echo } for project in ${projects} ; do - project_base=$(basename $(echo ${project} | cut -f1 -d'.')) - (metadata && reviews_for_bugs -p ${project} ${EXTRA_ARGS}) > results/${project_base}-reviews-for-bugs.txt + project_base=$(basename $(echo ${project} | cut -f1 -d'.')) + (metadata && reviews_for_bugs -p ${project} ${EXTRA_ARGS}) > results/${project_base}-reviews-for-bugs.txt done