#!/bin/bash

# Always exists in genrules but only exists in runfiles with
# `--legacy_external_runfiles`.
if [[ -d external/calibration ]]; then
  echo external/calibration exists
  echo external/calibration exists >> "$1"
fi

# Never exists in genrules and always exists in runfiles.
if [[ -d ../calibration ]]; then
  echo ../calibration exists
  echo ../calibration exists >> "$1"
fi
