Comet/build.vsh

18 lines
242 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)
}
sh('ls')
rmdir_all('build') or {}
mkdir('build')!
result := execute('mv *.v build/')
if result.exit_code ! /= {
println(result.output)
}