From d768aadb68ddb8965cc13581bd9b61e3021267df Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 4 Jul 2012 14:56:28 +0000 Subject: [PATCH] Incluindo script para atualização automática do ChangeLog igual ao do projeto CodeBlocks --- ChangeLog.xsl | 384 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ updateChangeLog.sh | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 436 insertions(+), 0 deletions(-) create mode 100644 ChangeLog.xsl create mode 100755 updateChangeLog.sh diff --git a/ChangeLog.xsl b/ChangeLog.xsl new file mode 100644 index 0000000..8c3f111 --- /dev/null +++ b/ChangeLog.xsl @@ -0,0 +1,384 @@ + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &space;&space; + + + + + + + + + + + + + + + + + &space;&space; + + + + + + + + + + svn + + :   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &space; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &space;&space; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &space;&space; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/updateChangeLog.sh b/updateChangeLog.sh new file mode 100755 index 0000000..b160313 --- /dev/null +++ b/updateChangeLog.sh @@ -0,0 +1,52 @@ +#!/bin/bash +# +# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a +# aplicativos mainframe. Registro no INPI sob o nome G3270. +# +# Copyright (C) <2008> +# +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob +# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela +# Free Software Foundation. +# +# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para +# obter mais detalhes. +# +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este +# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple +# Place, Suite 330, Boston, MA, 02111-1307, USA +# +# Contatos: +# +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) +# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) +# licinio@bb.com.br (Licínio Luis Branco) +# kraucer@bb.com.br (Kraucer Fernandes Mazuco) +# + +REV_TO=${1:-"HEAD"} +REV_LAST=`cat ChangeLog | head -3 - | tr -d '\r\n' | sed -e 's/.*svn\([0-9]*\).*/\1/'` + +echo $PACKAGE_SOURCE + +REV_MAX=`svn --xml info | tr -d '\r\n' | sed -e 's/.*.*/\1/'` + +REV_FROM=${2:-$(($REV_LAST + 1))} + +if [ $REV_FROM -gt $REV_MAX ]; then + exit 0; +fi + +echo "Downloading svn-log from revision $REV_FROM to revision $REV_MAX" + +svn --verbose --xml log -r "$REV_TO:$REV_FROM" | xsltproc --stringparam strip-prefix "trunk" --stringparam linelen "75" --stringparam groupbyday "no" --stringparam separate-daylogs "no" --stringparam include-rev "yes" --stringparam breakbeforemsg "no" --stringparam reparagraph "no" --stringparam authorsfile "" --stringparam title "ChangeLog" --stringparam revision-link "#r" --stringparam ignore-message-starting "" --nowrite --nomkdir --nonet "ChangeLog.xsl" - > "ChangeLog.new" +if [ "$?" != "0" ]; then + exit -1 +fi + +cat "ChangeLog" >> "ChangeLog.new" + +mv "ChangeLog.new" "ChangeLog" -- libgit2 0.21.2