ggdgsdbsdbbb / build.vsh
15 lines · 13 sloc · 404 bytes · 5d8107cb28727996daed016b0c79a9346f864d2b
Raw
1import net.http
2
3path := 'static/css/gitly.css'
4if !exists(path) {
5 ret := system('sassc static/css/gitly.scss > ${path}')
6 if ret != 0 {
7 http.download_file('https://gitly.org/css/gitly.css', path)!
8 println('No sassc detected on this system, gitly.css has been downloaded from gitly.org.')
9 }
10}
11
12ret := system('v .')
13if ret == 0 {
14 println('Gitly has been successfully built, run it with ./gitly')
15}
16