From d654b45b60b4c8b6c9b28adc73f51000c174b402 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 13 Feb 2014 16:11:20 +0000 Subject: [PATCH] Modernize ATC list format * tools/atc/README: When generating the initial data dump, MySQL on review.openstack.org creates output files with DOS line endings and ISO-8859-1 encoding. Recommend using fromdos and iconv to normalize them. Change-Id: Ie16a56c024b0eee97b0e6bd5abe8ed3b0e0a9f7e --- tools/atc/README | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/atc/README b/tools/atc/README index 4fc7cc7ac4..658155c8fb 100644 --- a/tools/atc/README +++ b/tools/atc/README @@ -25,8 +25,11 @@ elections and Summit invitations. ./email-stats.sh DATE=`date --iso` mkdir $DATE - cat out/*.csv | sort | uniq > $DATE/all.csv - mv out/* $DATE/ + for f in out/*.csv ; do + fromdos $f + iconv -f ISO-8859-1 -t UTF-8 -o $DATE/`basename $f` $f + done + cat $DATE/*.csv | sort | uniq > $DATE/all.csv 6) You can use diff.py to get the new ATCs since the previous run: