From f2bf80bd41bebe3413f2abb73fe325a1592551a6 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 18 Dec 2017 10:31:13 +0100 Subject: [PATCH] add version as comment to js file this can be used in the proxy to read the installed version of the widget toolkit (without needing to read the info from apt/dpkg/etc.) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a6ef785..9d7dfda 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,9 @@ lint: ${JSSRC} jslint ${JSSRC} proxmoxlib.js: ${JSSRC} - cat ${JSSRC} >$@.tmp + # add the version as comment in the file + echo "// ${PKGVER}-${PKGREL}" > $@.tmp + cat ${JSSRC} >> $@.tmp mv $@.tmp $@ install: proxmoxlib.js