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 --- include/lib.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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