Comet/build.vsh

18 lines
244 B
V
Raw Normal View History

2024-07-28 19:13:01 +00:00
#!/usr/bin/env -S v
fn sh(cmd string) {
println('> ${cmd}')
print(execute_or_exit(cmd).output)
}
2024-07-28 23:59:32 +00:00
//sh('ls')
2024-07-28 19:13:01 +00:00
rmdir_all('build') or {}
mkdir('build')!
result := execute('mv *.v build/')
2024-07-28 23:59:32 +00:00
if result.exit_code != 0 {
2024-07-28 19:13:01 +00:00
println(result.output)
}