[pve-devel] [PATCH widget-toolkit 1/4] add version as comment to js file

Dominik Csapak d.csapak at proxmox.com
Mon Dec 18 10:56:42 CET 2017


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.)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 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
-- 
2.11.0





More information about the pve-devel mailing list