miller/go/u/accept-case
2020-12-31 11:35:43 -05:00

16 lines
365 B
Bash
Executable file

#!/bin/bash
# See ./reg-test/run and ./reg-test/README.md for background on this
# keystroke-saver.
for arg; do
src=output-reg-test/$arg.out
if [ -f $src ]; then
cp $src reg-test/expected
elif [ -f $arg ]; then
src=output-reg-test/$(basename $arg).out
cp $src reg-test/expected
else
echo "Cannot find source $arg" 1>&2
exit 1
fi
done