From afac9a06d2c6f18c44066321674129383e85b2ba Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 2 Jun 2024 23:34:10 +0100 Subject: build: print the project website address on help Signed-off-by: Leah Rowe --- build | 2 +- include/lib.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build b/build index 28d8be08..44d99507 100755 --- a/build +++ b/build @@ -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 -- cgit v1.2.1