diff options
author | Daniel Neri <daniel.neri@sigicom.se> | 2008-01-29 15:40:37 +0100 |
---|---|---|
committer | Daniel Neri <daniel.neri@sigicom.se> | 2008-01-29 15:40:37 +0100 |
commit | 5630d68ea9c8059bc923148bc312f4f85cfc4042 (patch) | |
tree | 4d35f390afba193357abb81da7a07c2ce63dc8a0 | |
parent | f0be9749ca6d1e7909059a83cdd6f4d5bff3bcad (diff) | |
download | xmonad-5630d68ea9c8059bc923148bc312f4f85cfc4042.tar.gz xmonad-5630d68ea9c8059bc923148bc312f4f85cfc4042.tar.xz xmonad-5630d68ea9c8059bc923148bc312f4f85cfc4042.zip |
Get version from the Paths_xmonad module generated by Cabal
No need to bump version in more than one place.
darcs-hash:20080129144037-6cd96-43776bf811da0f4ab36901be3dfb7981b1261730.gz
-rw-r--r-- | Main.hs | 5 | ||||
-rw-r--r-- | TODO | 1 |
2 files changed, 4 insertions, 2 deletions
@@ -21,6 +21,9 @@ import System.Info import System.Environment import System.Posix.Process (executeFile) +import Paths_xmonad (version) +import Data.Version (showVersion) + #ifdef TESTING import qualified Properties #endif @@ -36,7 +39,7 @@ main = do ["--resume", _] -> launch ["--recompile"] -> recompile False >> return () ["--recompile-force"] -> recompile True >> return () - ["--version"] -> putStrLn "xmonad 0.6" + ["--version"] -> putStrLn ("xmonad " ++ showVersion version) #ifdef TESTING ("--run-tests":_) -> Properties.main #endif @@ -10,7 +10,6 @@ * configuration documentation -* Be sure to bump --version * generate haddocks for core and XMC, upload to xmonad.org * generate manpage, generate html manpage * double check README build instructions |