A fork of the Materia GTK theme.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 render-assets.sh

View raw Download
text/x-shellscript • 910 B
Bourne-Again shell script, ASCII text executable
        
            
1
#!/bin/bash
2
set -ueo pipefail
3
4
if [[ ! "$(command -v inkscape || command -v rendersvg)" ]]; then
5
echo "'inkscape' or 'resvg' needs to be installed to generate the PNG."
6
exit 1
7
fi
8
9
if [[ ! "$(command -v optipng)" ]]; then
10
echo "'optipng' needs to be installed to optimize the resulting PNG."
11
fi
12
13
chrome() (
14
cd src/chrome
15
./render-assets.sh
16
)
17
18
gtk() (
19
cd src/gtk-3.0
20
./render-assets.sh
21
)
22
23
gtk2_light() (
24
cd src/gtk-2.0
25
./render-assets.sh light
26
)
27
28
gtk2_dark() (
29
cd src/gtk-2.0
30
./render-assets.sh dark
31
)
32
33
case "${1:-}" in
34
"")
35
chrome
36
gtk
37
gtk2_light
38
gtk2_dark
39
;;
40
chrome)
41
chrome
42
;;
43
gtk)
44
gtk
45
;;
46
gtk2)
47
gtk2_light
48
gtk2_dark
49
;;
50
gtk2-light)
51
gtk2_light
52
;;
53
gtk2-dark)
54
gtk2_dark
55
;;
56
*)
57
echo "Unknown argument '$1'"
58
echo "Use 'chrome', 'gtk', 'gtk2', 'gtk2-light' or 'gtk2-dark' as an argument."
59
exit 1
60
;;
61
esac
62