1
0
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:
Immortalin 2020-04-13 21:32:32 -04:00 committed by GitHub
parent 8bef97fce6
commit 080f550625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'