give the real version number
This commit is contained in:
parent
dd3fa62f38
commit
3cfc5f4f31
@ -84,7 +84,7 @@ yesodVersion :: String
|
|||||||
yesodVersion = showVersion Paths_yesod_core.version
|
yesodVersion = showVersion Paths_yesod_core.version
|
||||||
#else
|
#else
|
||||||
yesodVersion :: String
|
yesodVersion :: String
|
||||||
yesodVersion = "0.9.3.2"
|
yesodVersion = "0.9.4"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GHC7
|
#if GHC7
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import Scaffolding.Scaffolder
|
|||||||
import System.Environment (getArgs)
|
import System.Environment (getArgs)
|
||||||
import System.Exit (exitWith)
|
import System.Exit (exitWith)
|
||||||
import System.Process (rawSystem)
|
import System.Process (rawSystem)
|
||||||
|
import Yesod.Core(yesodVersion)
|
||||||
|
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
import Build (touch)
|
import Build (touch)
|
||||||
@ -35,7 +36,7 @@ main = do
|
|||||||
["touch"] -> touch
|
["touch"] -> touch
|
||||||
#endif
|
#endif
|
||||||
["devel"] -> devel isDev
|
["devel"] -> devel isDev
|
||||||
["version"] -> putStrLn "0.9.3"
|
["version"] -> putStrLn yesodVersion
|
||||||
"configure":rest -> rawSystem cmd ("configure":rest) >>= exitWith
|
"configure":rest -> rawSystem cmd ("configure":rest) >>= exitWith
|
||||||
_ -> do
|
_ -> do
|
||||||
putStrLn "Usage: yesod <command>"
|
putStrLn "Usage: yesod <command>"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user