view gen_changelog.sh @ 1385:b4e6fee484f7

Fix utf8/locale conversion warning: the path passed to isdir() is not in UTF8 (if local fs is not in UFT8) so do not use it (isdir() uses stat_utf8() which calls path_from_utf8()).
author zas_
date Fri, 06 Mar 2009 14:53:32 +0000
parents 0c918f8b1f51
children
line wrap: on
line source

#!/bin/bash

# Script to update ChangeLog file,
# it keeps "pre-svn" history and insert svn log at top,
# it uses C locale for date format.
# It has to be run where ChangeLog is.
# Old ChangeLog is saved as ChangeLog.bak

[ ! -e "ChangeLog" ] && exit 1

tail -6614 ChangeLog > ChangeLog.$$.old && \
LC_ALL=C svn log -rHEAD:220 > ChangeLog.$$.new && \
cat ChangeLog.$$.old >> ChangeLog.$$.new && \
mv -f ChangeLog ChangeLog.bak && \
mv -f ChangeLog.$$.new ChangeLog

rm -f ChangeLog.$$.old
exit 0