vup: run make only on breaking changes
parent
f866a8a8e2
commit
c92b09d3e7
|
@ -43,11 +43,19 @@ fn main() {
|
||||||
|
|
||||||
backup('cmd/tools/vup.exe')
|
backup('cmd/tools/vup.exe')
|
||||||
} $else {
|
} $else {
|
||||||
|
self_result := os.exec('./v self') or {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
println(self_result.output)
|
||||||
|
if self_result.exit_code != 0 {
|
||||||
|
// v self failed, have to use make
|
||||||
|
println('v self failed, running make...')
|
||||||
make_result := os.exec('make') or {
|
make_result := os.exec('make') or {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
println(make_result.output)
|
println(make_result.output)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_ := os.exec('v cmd/tools/vup.v') or {
|
_ := os.exec('v cmd/tools/vup.v') or {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in New Issue