18 lines
242 B
V
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)
|
|
}
|
|
|