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.)
This commit is contained in:
Dominik Csapak 2017-12-18 10:31:13 +01:00
parent 1fb41f2e36
commit f2bf80bd41

View File

@ -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