diff --git a/README.md b/README.md index 16ab0dd..1667232 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ Put `names.txt` and `tokens.txt` to the same directory as If this directory is accessible over web, don't forget to remove read permissions for all but the owner. -It should just work; you may need to adjust the `votes.txt` path currently +After updating the "$label" setting in web-ballot.pl, +it should just work; you may need to adjust the `votes.txt` path currently hardcoded in `web-ballot.pl`, where the cast votes are recorded. Counting Votes @@ -30,4 +31,21 @@ Counting Votes This script will show just the final vote for each token: - perl -nle 'chomp; @b = split/,/; $a{$b[0]} = [@b]; END { for (values %a) { print join(",", @$_); } }' ~/'votes testovaci komise'.txt + perl -nle 'chomp; @b = split/,/; $a{$b[0]} = [@b]; END { for (values %a) { print join(",", @$_); } }' ~/'votes testovaci komise'.txt >finalvotes.txt + +Append votes from collected paper ballots, one line per ballot, with numbers +for each candidate as entered (use 0 in place of numbers not entered for +a particular candidate). + +Then, build input for `hlas.pl` - a text file, that has: + + NUMBER_OF_ELECTED_CANDIDATES (1 for predseda, 3 or 5 or 7 for rada, ...) + + + + + 0 + +(See hlas-example.txt for an example.) + +Then, run `hlas.pl < textfile` and there you go!