SVN: rc-scripts/trunk/changelog.sh
glen
glen at pld-linux.org
Fri Mar 2 16:37:35 CET 2007
Author: glen
Date: Fri Mar 2 16:37:32 2007
New Revision: 8323
Modified:
rc-scripts/trunk/changelog.sh
Log:
- detect users file charset
Modified: rc-scripts/trunk/changelog.sh
==============================================================================
--- rc-scripts/trunk/changelog.sh (original)
+++ rc-scripts/trunk/changelog.sh Fri Mar 2 16:37:32 2007
@@ -24,7 +24,12 @@
branch=$(svn info | awk '/URL:/{print $NF}' | sed -e 's,^.*svn.pld-linux.org/svn,,')
-svn log -v --xml | svn2log --users-charset=ISO8859-2 --domain "pld-linux.org" -p $branch -u $tmp --exclude ChangeLog -o ChangeLog
+if grep -q vim:encoding=utf-8 $users; then
+ charset=UTF-8
+else
+ charset=ISO8859-2
+fi
+svn log -v --xml | svn2log --users-charset=$charset --domain "pld-linux.org" -p $branch -u $tmp --exclude ChangeLog -o ChangeLog
rm -f $tmp
# obfuscate emails <user at domain> and (user at domain)
More information about the pld-cvs-commit
mailing list