# I/O type (IO_TYPE sets defaults for IN_TYPE and OUT_TYPE)
# file input from $PROBLEM.in, output to $PROBLEM.out (possible even for interactive tasks)
# stdio input from stdin, output to stdout
+# dir input from all files in the directory $TEST.in, these are copied to $BOXDIR,
+# can contain .stdin, which will be aviable as program stdin
# none no input/output
IO_TYPE=stdio
#IN_TYPE=stdio
;;
none) echo "Input file: <none>"
;;
+ dir) echo "Input file: files in directory $PDIR/$TEST.in/"
+ [ -d $PDIR/$TEST.in ] || die "Not a directory: $PDIR/$TEST.in"
+ # TODO: recursive ln to $TDIR
+ cp -r $PDIR/$TEST.in $TDIR/$TEST.in
+ cp -r $PDIR/$TEST.in/* $BOXDIR/
+ # Can have .stdin, but empty by default
+ touch $BOXDIR/.stdin
+ BOX_EXTRAS="$BOX_EXTRAS -i.stdin"
+ ;;
*) die "Unknown IN_TYPE $IN_TYPE"
;;
esac