diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..1d0ba9e --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.4.0 diff --git a/build_man.sh b/build_man.sh index 851699d..cc331b4 100755 --- a/build_man.sh +++ b/build_man.sh @@ -1,3 +1,8 @@ -#!/bin/sh +#!/bin/bash -txt2man -p MANUAL.txt > arch-log.1 +txt2man \ + -t arch-log \ + -v arch-log \ + -r arch-log-$( arch-log.1 diff --git a/main.go b/main.go index fb01f6e..f5de5ef 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + _ "embed" "errors" "fmt" "os" @@ -12,7 +13,9 @@ import ( "github.com/Necoro/arch-log/pkg/log" ) -const VERSION = "0.4.0" +//go:embed VERSION +var VERSION string + const PROG_NAME = "arch-log" var versionMsg = PROG_NAME + " v" + VERSION