Skip to content
Snippets Groups Projects
Commit a4c57aa9 authored by Cam Saul's avatar Cam Saul
Browse files

generate a version.js file

parent cc134a62
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
// -*- 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}}";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment