buildsys: avoid whitespace in build info heading

this is added to the URL as is by most index templates, and literal
(non-URL-encoded) white space might break things.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-03 12:35:42 +02:00
parent 1683d09017
commit 0676eb3738

View File

@ -124,7 +124,7 @@ BUILD_TIME=$(or $(SOURCE_DATE_EPOCH),$(shell date '+%s.%N'))
BUILD_VERSION=$(or $(DEB_VERSION),$(shell git rev-parse HEAD),unknown version) BUILD_VERSION=$(or $(DEB_VERSION),$(shell git rev-parse HEAD),unknown version)
proxmoxlib.js: .lint-incremental $(JSSRC) proxmoxlib.js: .lint-incremental $(JSSRC)
# add the version as comment in the file # add the version as comment in the file
echo "// v$(BUILD_VERSION) - t$(BUILD_TIME)" > $@.tmp echo "// v$(BUILD_VERSION)-t$(BUILD_TIME)" > $@.tmp
cat $(JSSRC) $(MARKEDJS) >> $@.tmp cat $(JSSRC) $(MARKEDJS) >> $@.tmp
mv $@.tmp $@ mv $@.tmp $@