-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimport_css.sh
33 lines (25 loc) · 1.58 KB
/
import_css.sh
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
26
27
28
29
30
31
32
33
M_C=$1
if [ "x${M_C}" = "x" ]; then
echo "Usage import_css.sh PATH_TO_MOZILLA_CENTRAL" > /dev/stderr
exit 1
fi
cp ${M_C}/devtools/client/themes/common.css devtools-common.css
sed -i .bak -e 's|^@import\(.*\);$||' devtools-common.css
sed -i .bak -e 's|chrome://devtools/skin/images/|./images/|' devtools-common.css
sed -i .bak -e 's|chrome://devtools/skin/images/|./images/|' devtools-common.css
sed -i .bak -e 's|chrome://browser/skin/|./images/|' devtools-common.css
sed -i .bak -e 's|chrome://global/skin/icons/|./images/|' devtools-common.css
cp ${M_C}/devtools/client/themes/splitters.css devtools-splitters.css
cp ${M_C}/devtools/client/themes/variables.css devtools-variables.css
cp ${M_C}/devtools/client/themes/toolbars.css devtools-toolbars.css
sed -i .bak -e 's|chrome://devtools/skin/images/|./images/|' devtools-toolbars.css
cp ${M_C}/devtools/client/themes/tooltips.css devtools-tooltips.css
sed -i .bak -e 's|chrome://global/skin/icons/|./images/|' devtools-tooltips.css
sed -i .bak -e 's|chrome://devtools/skin/images/|./images/|' devtools-tooltips.css
sed -i .bak -e 's|resource://devtools/client/shared/components/reps/images/|./images/|' devtools-tooltips.css
sed -i .bak -e 's|chrome://devtools/content/shared/components/reps/images/|./images/|' devtools-tooltips.css
sed -i .bak -e 's|^@import\(.*\);$||' devtools-tooltips.css
cp ${M_C}/devtools/client/debugger/src/components/variables.css debugger-variables.css
cp ${M_C}/devtools/client/debugger/src/components/Editor/Tabs.css debugger-Tabs.css
cp ${M_C}/devtools/client/debugger/src/components/App.css debugger-App.css
rm *.css.bak