yesod version prints yesod-core and yesod version numbers
This commit is contained in:
parent
bedabb4038
commit
08e123c0e6
@ -6,6 +6,8 @@ import System.Exit (exitWith, ExitCode (ExitSuccess))
|
||||
import System.Process (rawSystem)
|
||||
import Yesod.Core (yesodVersion)
|
||||
import Control.Monad (unless)
|
||||
import qualified Paths_yesod
|
||||
import Data.Version (showVersion)
|
||||
|
||||
#ifndef WINDOWS
|
||||
import Build (touch)
|
||||
@ -46,7 +48,9 @@ main = do
|
||||
rawSystem' cmd ["configure", "--enable-tests", "-flibrary-only"]
|
||||
rawSystem' cmd ["build"]
|
||||
rawSystem' cmd ["test"]
|
||||
["version"] -> putStrLn $ "yesod-core version:" ++ yesodVersion
|
||||
["version"] -> do
|
||||
putStrLn $ "yesod-core version:" ++ yesodVersion
|
||||
putStrLn $ "yesod version:" ++ showVersion Paths_yesod.version
|
||||
"configure":rest -> rawSystem cmd ("configure":rest) >>= exitWith
|
||||
["add-handler"] -> addHandler
|
||||
["keter"] -> keter cmd False
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: yesod
|
||||
version: 1.1.1
|
||||
version: 1.1.1.1
|
||||
license: MIT
|
||||
license-file: LICENSE
|
||||
author: Michael Snoyman <michael@snoyman.com>
|
||||
@ -118,6 +118,7 @@ executable yesod
|
||||
Build
|
||||
Keter
|
||||
AddHandler
|
||||
Paths_yesod
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
||||
Loading…
Reference in New Issue
Block a user