mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-22 05:47:21 +02:00
use the tag alone as the version for future releases
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ import Control.Monad (when)
|
|||||||
import Data.Char (toLower)
|
import Data.Char (toLower)
|
||||||
import Data.List (isPrefixOf, isSuffixOf)
|
import Data.List (isPrefixOf, isSuffixOf)
|
||||||
import Data.Version (showVersion)
|
import Data.Version (showVersion)
|
||||||
import GitHash (giDescribe, tGitInfoCwdTry)
|
import GitHash (giTag, tGitInfoCwdTry)
|
||||||
import qualified Paths_sv2v (version)
|
import qualified Paths_sv2v (version)
|
||||||
import System.IO (stderr, hPutStr)
|
import System.IO (stderr, hPutStr)
|
||||||
import System.Console.CmdArgs
|
import System.Console.CmdArgs
|
||||||
@@ -54,7 +54,7 @@ data Job = Job
|
|||||||
} deriving (Typeable, Data)
|
} deriving (Typeable, Data)
|
||||||
|
|
||||||
version :: String
|
version :: String
|
||||||
version = either (const backup) giDescribe $$tGitInfoCwdTry
|
version = either (const backup) giTag $$tGitInfoCwdTry
|
||||||
where backup = showVersion Paths_sv2v.version
|
where backup = showVersion Paths_sv2v.version
|
||||||
|
|
||||||
defaultJob :: Job
|
defaultJob :: Job
|
||||||
|
|||||||
Reference in New Issue
Block a user