chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / os-specific / darwin / print-reexports / setup-hook.sh
blob9efb00aeb4dc4531c507cc0d265c92a8a4721ce3
1 fixupOutputHooks+=('checkTbdReexports')
3 checkTbdReexports() {
4 local dir="$1"
6 while IFS= read -r -d $'\0' tbd; do
7 echo "checkTbdRexports: checking re-exports in $tbd"
8 while read -r target; do
9 local expected="${target%.dylib}.tbd"
10 if ! [ -e "$expected" ]; then
11 echo -e "Re-export missing:\n\t'$target'\n\t(expected '$expected')"
12 echo -e "While processing\n\t'$tbd'"
13 exit 1
14 else
15 echo "Re-exported target '$target' ok"
17 done < <(print-reexports "$tbd")
18 done < <(find $prefix -type f -name '*.tbd' -print0)