forked from bids-standard/bids-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/markmikkelsen/bids-specif…
- Loading branch information
Showing
12 changed files
with
99 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ microscopy: | |
- NLO | ||
- OCT | ||
- SPIM | ||
- hipCT | ||
extensions: | ||
- .ome.tif | ||
- .ome.btf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -eu -o pipefail | ||
|
||
schema_json=$(readlink -f "$1") | ||
|
||
cd "$(dirname "$(readlink -f "$0")")/../src/schema" | ||
|
||
# Create a temporary file and ensure it gets deleted on exit | ||
tmpfile=$(mktemp) | ||
trap 'rm -f "$tmpfile"' EXIT | ||
|
||
grep -oE '(://)?([-_A-Za-z]+\.)+[-_A-Za-z]+' README.md \ | ||
| grep -v -e :// -e '\.\(md\|html\|json\|tsv\|yaml\)$' \ | ||
| grep -e '^\(meta\|objects\|rules\)' \ | ||
| grep -v 'objects.metadata.OtherObjectName' \ | ||
| sort | uniq | \ | ||
while IFS= read -r p; do | ||
v=$(jq ".$p" < "$schema_json" | grep -v '^null$' || echo "fail") | ||
if [ -z "$v" ] || [ "$v" = "fail" ]; then | ||
echo "$p: not reachable" >> "$tmpfile" | ||
fi | ||
done | ||
|
||
# Check if the temporary file is empty | ||
if [ -s "$tmpfile" ]; then | ||
cat "$tmpfile" # Display the not reachable paths | ||
exit 1 | ||
fi |