Turn top-level Cargo.toml into a virtual manifest

This commit is contained in:
Michael Vines
2019-03-20 21:01:23 -07:00
parent d2415613de
commit 63aadc4905
4 changed files with 14 additions and 38 deletions

View File

@ -42,7 +42,7 @@ MAJOR=0
MINOR=0
PATCH=0
SPECIAL=""
semverParseInto "$(readCargoVariable version ./Cargo.toml)" MAJOR MINOR PATCH SPECIAL
semverParseInto "$(readCargoVariable version "${Cargo_tomls[0]}")" MAJOR MINOR PATCH SPECIAL
[[ -n $MAJOR ]] || usage
currentVersion="$MAJOR.$MINOR.$PATCH$SPECIAL"