Menu

[r13140]: / branches / wxfnb_to_wxaui / updateChangeLog.sh  Maximize  Restore  History

Download this file

28 lines (19 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
# http://www.gnu.org/licenses/gpl-3.0.html
#
# $Revision: 5586 $
# $Id: updateChangeLog.sh 5586 2009-05-03 21:37:58Z jenslody $
# $HeadURL:$
#
REV_TO=${1:-"HEAD"}
REV_LAST=`cat ChangeLog | head -3 - | tr -d '\r\n' | sed -e 's/.*svn\([0-9]*\).*/\1/'`
REV_MAX=`svn --xml info 'svn://svn.berlios.de/codeblocks/trunk' | tr -d '\r\n' | sed -e 's/.*<commit.*revision="\([0-9]*\)".*<\/commit>.*/\1/'`
REV_FROM=${2:-$(($REV_LAST + 1))}
if [ $REV_FROM -gt $REV_MAX ]; then
exit 0;
fi
svn --verbose --xml log 'svn://svn.berlios.de/codeblocks/trunk' -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"
cat "ChangeLog" >> "ChangeLog.new"
mv "ChangeLog.new" "ChangeLog"
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.