Commit b2022ee0 authored by Vincent Pelletier's avatar Vincent Pelletier

Really find all state files.

Depending on input, some state files can starts with ".", and are not
matched by "state/*".
parent 36695896
......@@ -27,4 +27,5 @@ fi
# XXX: any simpler way ?
xargs -0 -r -n 1 -P $PARALLELISM -I "@FILE@" -- "$SHELL" -c 'INFILE="$1";shift;STATE_DIR="$1";shift;echo -n .;"$@" -Q --format json --out "$STATE_DIR/$(sed s:/:@:g <<< "$INFILE").json" "$INFILE"' "$0" "@FILE@" "$STATE_DIR" "$@"
echo
"$@" --out "$OUT_FILE" --state-file "$STATE_DIR"/*
# XXX: what if there are too many state files for a single execution ?
find "$STATE_DIR" -type f -print0 | xargs -0 -r "$@" --out "$OUT_FILE" --state-file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment