mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v up: optimization
This commit is contained in:
parent
8bef97fce6
commit
080f550625
@ -3,6 +3,7 @@ module main
|
|||||||
import (
|
import (
|
||||||
os
|
os
|
||||||
v.pref
|
v.pref
|
||||||
|
v.util
|
||||||
)
|
)
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
@ -26,6 +27,13 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
println(git_result.output)
|
println(git_result.output)
|
||||||
|
v_hash := util.githash(false)
|
||||||
|
current_hash := util.githash(true)
|
||||||
|
// println(v_hash)
|
||||||
|
// println(current_hash)
|
||||||
|
if v_hash == current_hash {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
$if windows {
|
$if windows {
|
||||||
v_backup_file := 'v_old.exe'
|
v_backup_file := 'v_old.exe'
|
||||||
|
Loading…
Reference in New Issue
Block a user