
* lrde-scmstats.sh: Look more like lrde-upload.sh. Ensure generated data is readable from the Web. Anonymize some names as requested by some contributors. --- ChangeLog | 8 ++++++++ lrde-scmstats.sh | 21 ++++++++++++--------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75e4788..31ebcf6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-11-25 Roland Levillain <roland@lrde.epita.fr> + + Update lrde-scmstats.sh. + + * lrde-scmstats.sh: Look more like lrde-upload.sh. + Ensure generated data is readable from the Web. + Anonymize some names as requested by some contributors. + 2011-11-24 Guillaume Lazzara <z@lrde.epita.fr> * distrib/macports/Portfile.in: Fix maintainers field. diff --git a/lrde-scmstats.sh b/lrde-scmstats.sh index 859f100..f1f0073 100755 --- a/lrde-scmstats.sh +++ b/lrde-scmstats.sh @@ -17,7 +17,7 @@ # along with Olena. If not, see <http://www.gnu.org/licenses/>. -# This file is run by the LRDE autobuilder before compilation. +# This file is run by the LRDE autobuilder before the build. # It is not meant to be distributed with Olena. set -ex @@ -25,19 +25,22 @@ set -ex # Buildbot will tell us the name of the branch being compiled using $1. branch=$1 -# We might want to filter stats for specific branches. -# Currently gitstats does not allow that. +# Filter stats for specific branches. case "$branch" in -# # Consider these branches only. + # Consider these branches only. master|next|swilena|mesh-segm-skel|stable/scribo|unstable/scribo) ;; -# # Don't upload other branches. + # Don't compute statistics for other branches. *) exit ;; esac -DEST=/lrde/dload/olena/stats/ +subdir=$branch +DEST=/lrde/dload/olena/stats/$subdir -# option '-c commit_end=$branch' is not needed since buildbot and git -# only checkout the current branch as 'master'. -gitstats . $DEST/$branch +# Compute statistics. +gitstats . $DEST +# Anonymize some names. +find "$DEST" -name "*.html" -exec sed -i 's/J.r.me Darbon/JD/g' {} \; +# Expose uploaded files. +chmod -R a+rX $DEST -- 1.7.2.5