blob: a4d78b2ccd345cc5568181291f55af64918b2232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|