mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
Get version from the Paths_xmonad module generated by Cabal
No need to bump version in more than one place.
This commit is contained in:
parent
2da09787da
commit
ad85e11a4a
5
Main.hs
5
Main.hs
@ -21,6 +21,9 @@ import System.Info
|
|||||||
import System.Environment
|
import System.Environment
|
||||||
import System.Posix.Process (executeFile)
|
import System.Posix.Process (executeFile)
|
||||||
|
|
||||||
|
import Paths_xmonad (version)
|
||||||
|
import Data.Version (showVersion)
|
||||||
|
|
||||||
#ifdef TESTING
|
#ifdef TESTING
|
||||||
import qualified Properties
|
import qualified Properties
|
||||||
#endif
|
#endif
|
||||||
@ -36,7 +39,7 @@ main = do
|
|||||||
["--resume", _] -> launch
|
["--resume", _] -> launch
|
||||||
["--recompile"] -> recompile False >> return ()
|
["--recompile"] -> recompile False >> return ()
|
||||||
["--recompile-force"] -> recompile True >> return ()
|
["--recompile-force"] -> recompile True >> return ()
|
||||||
["--version"] -> putStrLn "xmonad 0.6"
|
["--version"] -> putStrLn ("xmonad " ++ showVersion version)
|
||||||
#ifdef TESTING
|
#ifdef TESTING
|
||||||
("--run-tests":_) -> Properties.main
|
("--run-tests":_) -> Properties.main
|
||||||
#endif
|
#endif
|
||||||
|
1
TODO
1
TODO
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
* configuration documentation
|
* configuration documentation
|
||||||
|
|
||||||
* Be sure to bump --version
|
|
||||||
* generate haddocks for core and XMC, upload to xmonad.org
|
* generate haddocks for core and XMC, upload to xmonad.org
|
||||||
* generate manpage, generate html manpage
|
* generate manpage, generate html manpage
|
||||||
* double check README build instructions
|
* double check README build instructions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user