]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
add version as comment to js file
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 18 Dec 2017 09:31:13 +0000 (10:31 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 11 Jan 2018 13:48:13 +0000 (14:48 +0100)
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

index a6ef7859feb158dca03a5b9441c9c691c1ee6791..9d7dfdad77ac58d8cef5b2c9d44948e6b47bf8f4 100644 (file)
--- 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