#! /bin/sh # # $Id$ # # Copyright 1989-2016 MINES ParisTech # # This file is part of PIPS. # # PIPS is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # PIPS is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. # # See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with PIPS. If not, see . # pips_svn_dir="nlpmake newgen linear pips validation" month="" # Mmmm... The multiline mode of sed does not seems to work... # Switch to perl instead #sed --regexp-extended -e 's/\\n/1/gm' />/g; s,(-{72}\n)?(r[^\n]+)\n+(.+?)(?=\n-{72}\n),

\2

\n
\3
,msg; s,-{72},,g' else cat fi } display_help_and_exit () { echo "Syntax to report svn activity:" echo "$0 [--html] -m|-month " echo "with as a month begin date such as 2008-05-01" echo "Use --html for an HTML formated output." exit 1 } # cf /usr/share/doc/util-linux/examples/getopt-parse.bash TEMP=`getopt -o m: --long month: --long html -n $0 -- "$@"` eval set -- "$TEMP" while true ; do case "$1" in -m|--month) the_date=$2 ; shift 2 ;; --html) html_output=1 ; shift ;; --) shift ; break ;; *) display_help_and_exit exit 1 ;; esac done if [ -z $the_date ]; then display_help_and_exit fi # Normalize the date for svn: starting_date=`date --date="$the_date" +%Y-%m-%d` # Normalize the date for svn and compute the date 1 month later: ending_date=`date --date="$the_date +1 month" +%Y-%m-%d` revision_range="-r {$starting_date}:{$ending_date}" echo_html "" echo_html '' for d in $pips_svn_dir do echo_html "

" echo Developements in the \"$d\" depository: echo_html "

" ( cd $d; LC_ALL=en_US.utf8 svn log $revision_range | svn_log_to_html ) echo done echo_html ""