summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-23 08:43:42 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-23 08:54:45 +0000
commit9d5d98ebaeb6555ed7d50cb566e297ee75ee3c83 (patch)
tree80c935e6df51b08875802f18c57116464fa74ae0 /include
parentaa525142aa872d805d3085819365ce8d51cb93d7 (diff)
set version/projectname properly
lbmk used to set version/versiondate directly in err.sh, but now it's handled there by a function, which is called by the main script. script/update/release hadn't yet been adapted. the only change necessary is to call check_project() script/update/trees also makes use of it script/build/roms is using "projectname" Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/err.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/err.sh b/include/err.sh
index 3699d6ce..6a8afd41 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -59,6 +59,8 @@ check_project()
x_ printf "%s\n" "${version}" > version
xx_ printf "%s\n" "${versiondate}" > versiondate || \
x_ printf "%s\n" "${versiondate}" > versiondate
+
+ export LOCALVERSION="-${projectname}-${version%%-*}"
}
setvars()