Skip to content

Commit

Permalink
version auto manage.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 26, 2011
1 parent a35edd2 commit c78594d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CmdDB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ helpAndExit :: IO ()
helpAndExit = do
putStrLn $ programName ++ " " ++ " -- " ++ description
putStrLn ""
putStrLn $ "Version: " ++ version
putStrLn $ "Version: " ++ showVersion version
putStrLn "Usage:"
putStrLn $ "\t" ++ programName
putStrLn $ "\t" ++ programName ++ " <command> [args...]"
Expand Down
9 changes: 6 additions & 3 deletions Program.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module Program where
module Program (
version, showVersion
, programName, description
) where

version :: String
version = "0.1.6"
import Paths_cab
import Data.Version

programName :: String
programName = "cab"
Expand Down
3 changes: 2 additions & 1 deletion cab.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: cab
Version: 0.1.7
Version: 0.1.8
Author: Kazu Yamamoto <kazu@iij.ad.jp>
Maintainer: Kazu Yamamoto <kazu@iij.ad.jp>
License: BSD3
Expand Down Expand Up @@ -39,6 +39,7 @@ Executable cab
Types
Utils
VerDB
Paths_cab
Source-Repository head
Type: git
Location: git://github.com/kazu-yamamoto/cab.git

0 comments on commit c78594d

Please sign in to comment.