summaryrefslogtreecommitdiffstats
path: root/mkballots.sh
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-11-01 19:01:45 -0600
committerH. Peter Anvin <hpa@zytor.com>2016-11-01 19:01:45 -0600
commited672a2381417545e05f24afaec8732af4b622aa (patch)
tree57bac0f963294d98bed4da138dd9db9ce949ba9c /mkballots.sh
parentb2445fe5e3a489ef641c0a4321c020e1d934535f (diff)
downloadballot-ed672a2381417545e05f24afaec8732af4b622aa.tar.gz
ballot-ed672a2381417545e05f24afaec8732af4b622aa.tar.xz
ballot-ed672a2381417545e05f24afaec8732af4b622aa.zip
Add a random suffix to each ballot, verify each ballot ID
Diffstat (limited to 'mkballots.sh')
-rwxr-xr-xmkballots.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/mkballots.sh b/mkballots.sh
index 5234c37..061b8f0 100755
--- a/mkballots.sh
+++ b/mkballots.sh
@@ -1,14 +1,13 @@
#!/bin/bash -x
-# Usage: $0 numballots [prefix]
export PATH=$(realpath -s $(dirname "$0"))/bin:"$PATH"
-if [ -z "$1" ]; then
+if [ -z "$1" -o -z "$2" ]; then
set +x
- echo "Usage: $0 numballots [prefix]" 1>&2
+ echo "Usage: $0 prefix numballots" 1>&2
exit 1
fi
proj=tab2016
sdaps="sdaps $proj"
-ids=$proj/id.list
+ids=$proj/id1.list
rm -rf "$proj"
$sdaps setup_tex "$proj".tex
genids.pl "$@" > "$ids"