diff --git a/build-uberjar b/build-uberjar index 027bf90d68681506308e9d3bda444b0840cbc553..52d8dcc8d166b89ba7904cf5655e36b20a1eaa73 100755 --- a/build-uberjar +++ b/build-uberjar @@ -15,10 +15,13 @@ generate_version_info() { fi # Ok, now generate the appropriate file. Ha! we are ghetto - cat src/metabase/version.clj.template | perl -pe "s/{{VERSION}}/$LATEST_TAG/" > src/metabase/version.clj + TEMPLATES="src/metabase/version.clj resources/frontend_client/app/version.js" + for template in $TEMPLATES; do + cat "$template.template" | perl -pe "s/{{VERSION}}/$LATEST_TAG/" > $template - # We don't want these version changes being passed along to master so tell git to ignore them - git update-index --assume-unchanged src/metabase/version.clj + # We don't want these version changes being passed along to master so tell git to ignore them + git update-index --assume-unchanged $template + done fi } diff --git a/resources/frontend_client/app/version.js.template b/resources/frontend_client/app/version.js.template new file mode 100644 index 0000000000000000000000000000000000000000..25d548f270147beca2f5bd8e612c1d914bc781bb --- /dev/null +++ b/resources/frontend_client/app/version.js.template @@ -0,0 +1,11 @@ +// -*- mode: javascript; -*- +// +// ************************************************************ +// * WARNING: DO NOT EDIT VERSION.JS DIRECTLY! * +// * VERSION.JS IS AUTOMATICALLY GENERATED BY A PERL SCRIPT. * +// * INSTEAD, EDIT VERSION.JS.TEMPLATE. * +// ************************************************************ + +'use strict'; + +var METABASE_VERSION = "{{VERSION}}";