Comet/build.vsh
2024-07-28 15:13:01 -04:00

18 lines
242 B
V

#!/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)
}