mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
use the version number from Paths_gf
This commit is contained in:
2
GF.cabal
2
GF.cabal
@@ -1,5 +1,5 @@
|
|||||||
name: gf
|
name: gf
|
||||||
version: 3.0
|
version: 3.0-alpha
|
||||||
cabal-version: >= 1.2
|
cabal-version: >= 1.2
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
license: GPL
|
license: GPL
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ import GF.System.Readline (fetchCommand)
|
|||||||
|
|
||||||
import System.CPUTime
|
import System.CPUTime
|
||||||
|
|
||||||
|
import Data.Version
|
||||||
|
import Paths_gf
|
||||||
|
|
||||||
|
|
||||||
mainGFI :: [String] -> IO ()
|
mainGFI :: [String] -> IO ()
|
||||||
mainGFI xx = do
|
mainGFI xx = do
|
||||||
@@ -66,7 +69,7 @@ welcome = unlines [
|
|||||||
" * * * ",
|
" * * * ",
|
||||||
" * * * ",
|
" * * * ",
|
||||||
" ",
|
" ",
|
||||||
"This is GF version 3.0 alpha. ",
|
"This is GF version "++showVersion version++". ",
|
||||||
"Some things may work. "
|
"Some things may work. "
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -139,13 +139,11 @@ ghci-nofud:
|
|||||||
$(GHCI) $(GHCFLAGS)
|
$(GHCI) $(GHCFLAGS)
|
||||||
|
|
||||||
today:
|
today:
|
||||||
echo 'module Paths_gf (getDataDir) where' > Paths_gf.hs
|
echo 'module Paths_gf (version, getDataDir) where' > Paths_gf.hs
|
||||||
echo '{-# NOINLINE today #-}' >> Paths_gf.hs
|
echo 'import Data.Version' >> Paths_gf.hs
|
||||||
echo 'today :: String' >> Paths_gf.hs
|
|
||||||
echo 'today = "'`date`'"' >> Paths_gf.hs
|
|
||||||
echo '{-# NOINLINE version #-}' >> Paths_gf.hs
|
echo '{-# NOINLINE version #-}' >> Paths_gf.hs
|
||||||
echo 'version :: String' >> GF/Today.hs
|
echo 'version :: Version' >> Paths_gf.hs
|
||||||
echo 'version = "'$(PACKAGE_VERSION)'"' >> Paths_gf.hs
|
echo 'version = Version {versionBranch = [3,0], versionTags = ["alpha"]}' >> Paths_gf.hs
|
||||||
echo '{-# NOINLINE libdir #-}' >> Paths_gf.hs
|
echo '{-# NOINLINE libdir #-}' >> Paths_gf.hs
|
||||||
echo 'libdir :: String' >> Paths_gf.hs
|
echo 'libdir :: String' >> Paths_gf.hs
|
||||||
echo 'libdir = "'$(GF_LIB_DIR)'"' >> Paths_gf.hs
|
echo 'libdir = "'$(GF_LIB_DIR)'"' >> Paths_gf.hs
|
||||||
|
|||||||
Reference in New Issue
Block a user