Commit c5a7d34788be62a5b8ac40fe183174afd4bd6ce5
1 parent
96fbafec
Exists in
master
and in
5 other branches
Atualizando modulo, remove script antigo.
Showing
3 changed files
with
7 additions
and
56 deletions
Show diff stats
modules/lib3270
updateChangeLog.sh
| ... | ... | @@ -1,55 +0,0 @@ |
| 1 | -#!/bin/bash | |
| 2 | -# | |
| 3 | -# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 4 | -# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 5 | -# aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 6 | -# | |
| 7 | -# Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 8 | -# | |
| 9 | -# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
| 10 | -# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
| 11 | -# Free Software Foundation. | |
| 12 | -# | |
| 13 | -# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
| 14 | -# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
| 15 | -# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 16 | -# obter mais detalhes. | |
| 17 | -# | |
| 18 | -# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
| 19 | -# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | |
| 20 | -# Place, Suite 330, Boston, MA, 02111-1307, USA | |
| 21 | -# | |
| 22 | -# Contatos: | |
| 23 | -# | |
| 24 | -# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 25 | -# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | |
| 26 | -# licinio@bb.com.br (Licínio Luis Branco) | |
| 27 | -# kraucer@bb.com.br (Kraucer Fernandes Mazuco) | |
| 28 | -# | |
| 29 | - | |
| 30 | -touch ChangeLog | |
| 31 | - | |
| 32 | -REV_TO=${1:-"HEAD"} | |
| 33 | -REV_LAST=`head -3 ChangeLog | tr -d '\r\n' | sed -e 's/.*svn\([0-9]*\).*/\1/'` | |
| 34 | - | |
| 35 | -svn update | |
| 36 | - | |
| 37 | -REV_MAX=`svn --xml info | tr -d '\r\n' | sed -e 's/.*<commit.*revision="\([0-9]*\)".*<\/commit>.*/\1/'` | |
| 38 | - | |
| 39 | -REV_FROM=${2:-$(($REV_LAST + 1))} | |
| 40 | - | |
| 41 | -if [ $REV_FROM -gt $REV_MAX ]; then | |
| 42 | - echo "No update required from revision $REV_FROM to revision $REV_MAX" | |
| 43 | - exit 0; | |
| 44 | -fi | |
| 45 | - | |
| 46 | -echo "Downloading svn-log from revision $REV_FROM to revision $REV_MAX" | |
| 47 | - | |
| 48 | -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" | |
| 49 | -if [ "$?" != "0" ]; then | |
| 50 | - exit -1 | |
| 51 | -fi | |
| 52 | - | |
| 53 | -cat "ChangeLog" >> "ChangeLog.new" | |
| 54 | - | |
| 55 | -mv "ChangeLog.new" "ChangeLog" |