| 1 | import net.http |
| 2 | |
| 3 | path := 'static/css/gitly.css' |
| 4 | if !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 | |
| 12 | ret := system('v .') |
| 13 | if ret == 0 { |
| 14 | println('Gitly has been successfully built, run it with ./gitly') |
| 15 | } |
| 16 |