diff options
-rwxr-xr-x | build | 2 | ||||
-rwxr-xr-x | include/lib.sh | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -38,7 +38,7 @@ main() done case "${1}" in - version) printf "%s\n" "$relname" ;; + version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;; release) shift 1; mkrelease $@ ;; inject) shift 1; vendor_inject $@ ;; download) shift 1; vendor_download $@ ;; diff --git a/include/lib.sh b/include/lib.sh index 44ec3623..1b0f07c1 100755 --- a/include/lib.sh +++ b/include/lib.sh @@ -32,7 +32,7 @@ setvars() printf "%s\n" "${_setvars% }" } eval "$(setvars "" xbmk_release tmpdir _nogit version board boarddir relname \ - versiondate threads projectname)" + versiondate threads projectname projectsite)" # if "y": a coreboot target won't be built if target.cfg says release="n" # (this is used to exclude certain build targets from releases) @@ -70,6 +70,7 @@ x_() { $err "Cannot generate unknown versiondate file" read -r projectname < projectname || : +read -r projectsite < projectsite || : [ ! -f version ] || read -r version < version || : version_="$version" [ ! -e ".git" ] || version="$(git describe --tags HEAD 2>&1)" || \ @@ -78,7 +79,7 @@ version_="$version" versiondate_="$versiondate" [ ! -e ".git" ] || versiondate="$(git show --no-patch --no-notes \ --pretty='%ct' HEAD)" || versiondate="$versiondate_" -for p in projectname version versiondate; do +for p in projectname version versiondate projectsite; do eval "[ -n \"\$$p\" ] || $err \"$p unset\"" eval "x_ printf \"%s\\n\" \"\$$p\" > $p" done |