release.sh: use printf to create version files

Don't copy the files directly, because we might be doing
this from a work directory that has no files; in this case,
generic "unknown" variables are used, without generating
any files, so the current logic would produce an error.

However, we do need to create those dot files, because
we then rely on them for building release binaries.

The new logic maintains current behaviour, while fixing
this technical edge-case scenario via mitigation.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-26 18:46:58 +01:00
parent dee6997d0c
commit b77154640d
+1 -2
View File
@@ -27,8 +27,7 @@ release()
remkdir "$vdir"
x_ git clone . "$rsrc"
x_ cp ".version" "$rsrc/.version"
x_ cp ".versiondate" "$rsrc/.versiondate"
update_xbmkver "$rsrc"
prep_release src
prep_release tarball