github.com/coyove/nj@v0.0.0-20221110084952-c7f8db1065c3/update_version.sh (about)

     1  #!/bin/sh
     2  V=$(git rev-list --count master)
     3  V=$(expr ${V} + 1)
     4  LINE=$(grep 'const Version int64' bas/core_init.go)
     5  sed -i '' -e "s|${LINE}|const Version int64 = ${V}|" bas/core_init.go