Commit 6c73505c authored by Roland Levillain's avatar Roland Levillain
Browse files

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.
parent 86123996
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.
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment