Using git describe instead of rev-parse for version information.

This commit is contained in:
neviyn 2018-04-28 16:59:45 +01:00
parent d7122f76c6
commit f26aa6bcbd

View File

@ -2,8 +2,7 @@ import nake
import os, osproc, strutils
let
standardOptions = """--skipCfg -d:version:"""" & execProcess("git rev-parse --abbrev-ref HEAD").strip() &
"|" & execProcess("git rev-parse HEAD").strip() & """" kernel.nim"""
standardOptions = """--skipCfg -d:version:"""" & execProcess("git describe --long").strip() & """" kernel.nim"""
outputFile = "myos.bin"
task "clean", "Removes build files.":