htools: switch hscan to the generic binary
authorIustin Pop <iustin@google.com>
Fri, 8 Jul 2011 09:45:10 +0000 (11:45 +0200)
committerIustin Pop <iustin@google.com>
Tue, 19 Jul 2011 14:54:13 +0000 (16:54 +0200)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

.gitignore
Makefile.am
htools/Ganeti/HTools/Program/Hscan.hs [moved from htools/hscan.hs with 99% similarity]
htools/htools.hs

index fa3b3d7..3073a5c 100644 (file)
@@ -98,7 +98,6 @@
 /htools/.hpc
 /htools/coverage
 
-/htools/hscan
 /htools/hspace
 /htools/htools
 /htools/test
index c60eccc..7597e38 100644 (file)
@@ -307,10 +307,9 @@ docrst = \
        doc/walkthrough.rst
 
 HS_PROGS = \
-       htools/hscan \
        htools/hspace \
        htools/htools
-HS_BIN_ROLES = hbal
+HS_BIN_ROLES = hbal hscan
 
 HS_ALL_PROGS = $(HS_PROGS) htools/test
 HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS))
@@ -344,6 +343,7 @@ HS_LIB_SRCS = \
        htools/Ganeti/HTools/Utils.hs \
        htools/Ganeti/HTools/Program/Hail.hs \
        htools/Ganeti/HTools/Program/Hbal.hs \
+       htools/Ganeti/HTools/Program/Hscan.hs \
        htools/Ganeti/Jobs.hs \
        htools/Ganeti/Luxi.hs \
        htools/Ganeti/OpCodes.hs
similarity index 99%
rename from htools/hscan.hs
rename to htools/Ganeti/HTools/Program/Hscan.hs
index 261fce3..3fd39cb 100644 (file)
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
 -}
 
-module Main (main) where
+module Ganeti.HTools.Program.Hscan (main) where
 
 import Control.Monad
 import Data.Maybe (isJust, fromJust, fromMaybe)
index a2c2b48..acf1a50 100644 (file)
@@ -32,11 +32,13 @@ import System.IO
 import Ganeti.HTools.Utils
 import qualified Ganeti.HTools.Program.Hail as Hail
 import qualified Ganeti.HTools.Program.Hbal as Hbal
+import qualified Ganeti.HTools.Program.Hscan as Hscan
 
 -- | Supported binaries.
 personalities :: [(String, IO ())]
 personalities = [ ("hail", Hail.main)
                 , ("hbal", Hbal.main)
+                , ("hscan", Hscan.main)
                 ]
 
 -- | Display usage and exit.