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 <[EMAIL PROTECTED]> and ([EMAIL PROTECTED])
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to