summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Bob Badour <bbadour@google.com> 2021-11-23 12:12:06 -0800
committer Bob Badour <bbadour@google.com> 2021-11-23 12:12:06 -0800
commit0174ae3ae0ab2af3a1d40e03925917a08b886179 (patch)
treefc4d2cff557fd436d63ac53f971bcd2f99ff0c51
parent1469ff6eceb5e689ca32e5109c43a93d79b00bb9 (diff)
Account for "validations:"
Change-Id: I72b188c8cac54aa59d31e91b2a03b1329384e686
-rwxr-xr-xscripts/reverse-deps.sh3
-rwxr-xr-xscripts/transitive-deps.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/scripts/reverse-deps.sh b/scripts/reverse-deps.sh
index 02b7dcb73..410f5c0b7 100755
--- a/scripts/reverse-deps.sh
+++ b/scripts/reverse-deps.sh
@@ -67,6 +67,9 @@ function getDeps() {
$0 ~ /^\S\S*:$/ {
inoutput = 0
}
+ $1 == "validations:" {
+ inoutput = 0
+ }
inoutput != 0 {
print gensub(/^\s*/, "", "g")" "depth
}
diff --git a/scripts/transitive-deps.sh b/scripts/transitive-deps.sh
index ba36ba4bf..cf9fb94ef 100755
--- a/scripts/transitive-deps.sh
+++ b/scripts/transitive-deps.sh
@@ -100,7 +100,7 @@ function getDeps() {
currFileName = ""
currExt = ""
}
- $1 == "outputs:" {
+ $1 == "outputs:" || $1 == "validations:" {
ininput = 0
}
ininput == 0 && $0 ~ /^\S\S*:$/ {