mirror of https://github.com/zachjs/sv2v.git
use the tag alone as the version for future releases
This commit is contained in:
parent
6082cae4d1
commit
1c74178417
|
|
@ -12,7 +12,7 @@ import Control.Monad (when)
|
|||
import Data.Char (toLower)
|
||||
import Data.List (isPrefixOf, isSuffixOf)
|
||||
import Data.Version (showVersion)
|
||||
import GitHash (giDescribe, tGitInfoCwdTry)
|
||||
import GitHash (giTag, tGitInfoCwdTry)
|
||||
import qualified Paths_sv2v (version)
|
||||
import System.IO (stderr, hPutStr)
|
||||
import System.Console.CmdArgs
|
||||
|
|
@ -54,7 +54,7 @@ data Job = Job
|
|||
} deriving (Typeable, Data)
|
||||
|
||||
version :: String
|
||||
version = either (const backup) giDescribe $$tGitInfoCwdTry
|
||||
version = either (const backup) giTag $$tGitInfoCwdTry
|
||||
where backup = showVersion Paths_sv2v.version
|
||||
|
||||
defaultJob :: Job
|
||||
|
|
|
|||
Loading…
Reference in New Issue