Add downstream project build testing

This commit is contained in:
Michael Vines
2020-10-23 10:45:19 -07:00
parent c7c50bd32c
commit c7f4f15e60
4 changed files with 143 additions and 13 deletions

View File

@ -0,0 +1,14 @@
# source this file
readCargoVariable() {
declare variable="$1"
declare Cargo_toml="$2"
while read -r name equals value _; do
if [[ $name = "$variable" && $equals = = ]]; then
echo "${value//\"/}"
return
fi
done < <(cat "$Cargo_toml")
echo "Unable to locate $variable in $Cargo_toml" 1>&2
}