summaryrefslogtreecommitdiff
path: root/packages/challenger-ui/create_must.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/challenger-ui/create_must.sh')
-rwxr-xr-xpackages/challenger-ui/create_must.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/challenger-ui/create_must.sh b/packages/challenger-ui/create_must.sh
new file mode 100755
index 000000000..a4d78b2cc
--- /dev/null
+++ b/packages/challenger-ui/create_must.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# This file is in the public domain.
+
+# After the compilation succeeded
+# some changes needs to be made
+# in the html/js files to match the
+# what the service expects
+
+cd dist/prod
+
+for file in *.html; do
+
+ # 1. remove the js reference used for dev
+ sed /main.js/d -i $file
+
+ # 2. change the location of css since
+ #challenger backend wants them in the root path
+ sed 's/="main.css"/="..\/main.css"/' -i $file
+
+ # 3. rename the extension to must template
+ mv $file ${file:0:-5}.en.must
+done
+
+#delete unused files
+rm *.js *.map