mirror of https://github.com/dirtbags/moth.git
Cleaner mkpuzzles output
This commit is contained in:
parent
46549af7fd
commit
9e8f0b39ed
|
@ -1,3 +1,2 @@
|
||||||
* claim.cgi not exiting (maybe fixed?)
|
* claim.cgi not exiting (maybe fixed?)
|
||||||
* get LAUR for contest
|
* get LAUR for contest
|
||||||
* steg point values
|
|
||||||
|
|
17
mkpuzzles
17
mkpuzzles
|
@ -96,18 +96,21 @@ for dn in $indir/[0-9]*; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Append keys
|
# Append keys
|
||||||
if ! [ -f $dn/key ]; then
|
if [ -f $dn/key ]; then
|
||||||
|
while read answer; do
|
||||||
|
echo $points $answer >> $uanswers
|
||||||
|
done < $dn/key
|
||||||
|
else
|
||||||
echo "$dn/key: No such file or directory" 1>&2
|
echo "$dn/key: No such file or directory" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
while read answer; do
|
|
||||||
echo $points $answer >> $uanswers
|
|
||||||
done < $dn/key
|
|
||||||
|
|
||||||
# Append summary
|
# Append summary
|
||||||
while read line; do
|
if [ -f $dn/summary ]; then
|
||||||
echo $points $line >> $usummary
|
while read line; do
|
||||||
done < $dn/summary
|
echo $points $line >> $usummary
|
||||||
|
done < $dn/summary
|
||||||
|
fi
|
||||||
|
|
||||||
# Generate index now that we have a list of files
|
# Generate index now that we have a list of files
|
||||||
if [ -f $dn/index.mdwn ]; then
|
if [ -f $dn/index.mdwn ]; then
|
||||||
|
|
Loading…
Reference in New Issue