Allow specifying an output filename on the command line, instead of forcing reliance on shell redirection.

Closes #31
This commit is contained in:
Michael Hansen
2022-04-26 14:44:10 -07:00
parent 4884b5447f
commit 96ef91b5f9
3 changed files with 69 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ upfiles=()
for pyc in "${compfiles[@]}" "${xfcfiles[@]}"; do
base="$outdir/$(basename "$pyc")"
./pycdc "$pyc" 2>"$base.err" 1>"$base.src.py"
./pycdc "$pyc" -o "$base.src.py" >"$base.err" 2>&1
if (( $? )) || [[ -s "$base.err" ]]
then
if [[ "$(dirname "$pyc")" =~ xfail ]]