diff --git a/doc/problems.txt b/doc/problems.txt index 80b9167..3b9b98f 100644 --- a/doc/problems.txt +++ b/doc/problems.txt @@ -1,3 +1,2 @@ * claim.cgi not exiting (maybe fixed?) * get LAUR for contest -* steg point values diff --git a/mkpuzzles b/mkpuzzles index 3100bc7..48b96b3 100755 --- a/mkpuzzles +++ b/mkpuzzles @@ -96,18 +96,21 @@ for dn in $indir/[0-9]*; do fi # 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 exit 1 fi - while read answer; do - echo $points $answer >> $uanswers - done < $dn/key # Append summary - while read line; do - echo $points $line >> $usummary - done < $dn/summary + if [ -f $dn/summary ]; then + while read line; do + echo $points $line >> $usummary + done < $dn/summary + fi # Generate index now that we have a list of files if [ -f $dn/index.mdwn ]; then