diff --git a/reporter b/reporter index 714292a..70f763a 160000 --- a/reporter +++ b/reporter @@ -1 +1 @@ -Subproject commit 714292ad16ffdef7c8edf32fbdb36b509b9ea386 +Subproject commit 70f763a65a7f747f421030a5bfc56611987b90b1 diff --git a/reports b/reports index 1d0b1e1..21cf355 160000 --- a/reports +++ b/reports @@ -1 +1 @@ -Subproject commit 1d0b1e12401ae944e7341438a5d0509a0aa1697e +Subproject commit 21cf355d730e1c56ac39350f9cb839ac6a8fabaa diff --git a/scripts/build-publication.sh b/scripts/build-publication.sh index c733bac..699ec07 100755 --- a/scripts/build-publication.sh +++ b/scripts/build-publication.sh @@ -21,7 +21,7 @@ while (($#)); do done [[ ! -L "$output_root" ]] || { echo "$output_root: symlink output root is not supported" >&2; exit 1; } -output_root=$(realpath -m "$output_root") +output_root=$(python3 -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$output_root") root=$(pwd -P) [[ "$output_root" != "$root" && "$root" != "$output_root"/* ]] || { echo "$output_root: output root cannot contain the repository" >&2; exit 1; } [[ "$output_root" != "$root/reports" && "$output_root" != "$root/reports"/* && "$output_root" != "$root/reporter" && "$output_root" != "$root/reporter"/* ]] || { echo "$output_root: output root cannot be inside a source component" >&2; exit 1; } @@ -47,7 +47,7 @@ while IFS= read -r -d '' source; do mkdir -p "$(dirname "$output")" scripts/render-capture.sh "$source" "$output" ((count += 1)) -done < <(find reports/diagnostics -type f -name '*.json' -print0 | sort -z) +done < <(find reports/diagnostics -type f -name '*.json' -print0) ((count > 0)) || { echo 'No diagnostic captures found' >&2; exit 1; } echo "Rendered $count diagnostic PDFs into $output_root/diagnostics" diff --git a/scripts/workflow-all.sh b/scripts/workflow-all.sh index b94d68b..4230942 100755 --- a/scripts/workflow-all.sh +++ b/scripts/workflow-all.sh @@ -20,5 +20,5 @@ while IFS= read -r -d '' capture; do mkdir -p "$(dirname "$output")" reports/plugins/diagnostics/render.sh "$capture" --output "$output" --author "$author" --theme "$theme" ((count+=1)) -done < <(find "$capture_dir" -type f -name '*.json' -print0 | sort -z) +done < <(find "$capture_dir" -type f -name '*.json' -print0) echo "Created $count diagnostic artifacts and PDFs under $output_root"