Skip to content
Snippets Groups Projects
Commit 3add7574 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename htools/ to src/


Per offline discussions, this is the first patch of the
renames. Tested with "make distcheck", seems to work fine.

The only change outside of the renaming is a bit of simplification in
the .gitignore rules; otherwise, simply s/htools/src/.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 75b32fff
No related branches found
No related tags found
No related merge requests found
Showing
with 130 additions and 137 deletions
:set -ihtools -ihtest :set -isrc -ihtest
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
*.o *.o
*.hi *.hi
*.hp *.hp
*.tix
*.prof
*.stat
.hpc/
# / # /
/Makefile /Makefile
...@@ -91,6 +95,9 @@ ...@@ -91,6 +95,9 @@
/htest/hroller /htest/hroller
/htest/hscan /htest/hscan
/htest/hspace /htest/hspace
/htest/hpc-htools
/htest/hpc-mon-collector
/htest/test
# tools # tools
/tools/kvm-ifup /tools/kvm-ifup
...@@ -112,28 +119,14 @@ ...@@ -112,28 +119,14 @@
/scripts/gnt-network /scripts/gnt-network
/scripts/gnt-storage /scripts/gnt-storage
# htools-specific rules # haskell-specific rules
/htools/apidoc /src/mon-collector
/htools/.hpc /src/htools
/htools/coverage /src/hconfd
/src/ganeti-confd
/htools/mon-collector /src/rpc-test
/htools/htools
/htools/hconfd
/htools/ganeti-confd
/htools/rpc-test
/htest/hpc-htools
/htest/hpc-mon-collector
/htest/test
/htools/*.prof*
/htools/*.stat
/htools/*.tix
/htest/*.prof*
/htest/*.stat
/htest/*.tix
/.hpc/
/*.tix
/htools/Ganeti/Constants.hs # automatically-built Haskell files
/htools/Ganeti/Version.hs /src/Ganeti/Constants.hs
/src/Ganeti/Version.hs
/htest/Test/Ganeti/TestImports.hs /htest/Test/Ganeti/TestImports.hs
...@@ -55,16 +55,16 @@ myexeclibdir = $(pkglibdir) ...@@ -55,16 +55,16 @@ myexeclibdir = $(pkglibdir)
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
HTOOLS_DIRS = \ HTOOLS_DIRS = \
htools \ src \
htools/Ganeti \ src/Ganeti \
htools/Ganeti/Block \ src/Ganeti/Block \
htools/Ganeti/Block/Drbd \ src/Ganeti/Block/Drbd \
htools/Ganeti/Confd \ src/Ganeti/Confd \
htools/Ganeti/DataCollectors \ src/Ganeti/DataCollectors \
htools/Ganeti/HTools \ src/Ganeti/HTools \
htools/Ganeti/HTools/Backend \ src/Ganeti/HTools/Backend \
htools/Ganeti/HTools/Program \ src/Ganeti/HTools/Program \
htools/Ganeti/Query \ src/Ganeti/Query \
htest \ htest \
htest/Test \ htest/Test \
htest/Test/Ganeti \ htest/Test/Ganeti \
...@@ -182,8 +182,8 @@ CLEANFILES = \ ...@@ -182,8 +182,8 @@ CLEANFILES = \
$(nodist_pkgpython_PYTHON) \ $(nodist_pkgpython_PYTHON) \
$(HS_ALL_PROGS) $(HS_BUILT_SRCS) \ $(HS_ALL_PROGS) $(HS_BUILT_SRCS) \
$(HS_BUILT_TEST_HELPERS) \ $(HS_BUILT_TEST_HELPERS) \
htools/ganeti-confd \ src/ganeti-confd \
.hpc/*.mix htools/*.tix htest/*.tix \ .hpc/*.mix src/*.tix htest/*.tix \
doc/hs-lint.html doc/hs-lint.html
GENERATED_FILES = \ GENERATED_FILES = \
...@@ -195,7 +195,7 @@ HTOOLS_GENERATED_FILES = ...@@ -195,7 +195,7 @@ HTOOLS_GENERATED_FILES =
if WANT_HTOOLS if WANT_HTOOLS
HTOOLS_GENERATED_FILES += $(HS_PROGS) HTOOLS_GENERATED_FILES += $(HS_PROGS)
if ENABLE_CONFD if ENABLE_CONFD
HTOOLS_GENERATED_FILES += htools/hconfd htools/ganeti-confd HTOOLS_GENERATED_FILES += src/hconfd src/ganeti-confd
endif endif
endif endif
...@@ -408,7 +408,7 @@ docrst = \ ...@@ -408,7 +408,7 @@ docrst = \
doc/virtual-cluster.rst \ doc/virtual-cluster.rst \
doc/walkthrough.rst doc/walkthrough.rst
HS_PROGS = htools/htools htools/mon-collector HS_PROGS = src/htools src/mon-collector
HS_BIN_ROLES = hbal hscan hspace hinfo hcheck hroller HS_BIN_ROLES = hbal hscan hspace hinfo hcheck hroller
HS_HTOOLS_PROGS = $(HS_BIN_ROLES) hail HS_HTOOLS_PROGS = $(HS_BIN_ROLES) hail
...@@ -417,14 +417,14 @@ HS_ALL_PROGS = \ ...@@ -417,14 +417,14 @@ HS_ALL_PROGS = \
htest/hpc-htools \ htest/hpc-htools \
htest/hpc-mon-collector \ htest/hpc-mon-collector \
htest/test \ htest/test \
htools/hconfd \ src/hconfd \
htools/rpc-test src/rpc-test
HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS)) HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS))
HS_BUILT_TEST_HELPERS = $(HS_BIN_ROLES:%=htest/%) htest/hail HS_BUILT_TEST_HELPERS = $(HS_BIN_ROLES:%=htest/%) htest/hail
HFLAGS = \ HFLAGS = \
-O -Wall -Werror -ihtools \ -O -Wall -Werror -isrc \
-fwarn-monomorphism-restriction \ -fwarn-monomorphism-restriction \
-fwarn-tabs \ -fwarn-tabs \
$(GHC_BYVERSION_FLAGS) $(GHC_BYVERSION_FLAGS)
...@@ -444,74 +444,74 @@ HPCEXCL = --exclude Main \ ...@@ -444,74 +444,74 @@ HPCEXCL = --exclude Main \
--exclude Test.Ganeti.TestHTools \ --exclude Test.Ganeti.TestHTools \
--exclude Test.Ganeti.TestHelper \ --exclude Test.Ganeti.TestHelper \
--exclude Test.Ganeti.TestImports \ --exclude Test.Ganeti.TestImports \
$(patsubst htools.%,--exclude Test.%,$(subst /,.,$(patsubst %.hs,%, $(HS_LIB_SRCS)))) $(patsubst src.%,--exclude Test.%,$(subst /,.,$(patsubst %.hs,%, $(HS_LIB_SRCS))))
HS_LIB_SRCS = \ HS_LIB_SRCS = \
htools/Ganeti/Block/Drbd/Types.hs \ src/Ganeti/Block/Drbd/Types.hs \
htools/Ganeti/Block/Drbd/Parser.hs \ src/Ganeti/Block/Drbd/Parser.hs \
htools/Ganeti/BasicTypes.hs \ src/Ganeti/BasicTypes.hs \
htools/Ganeti/Common.hs \ src/Ganeti/Common.hs \
htools/Ganeti/Compat.hs \ src/Ganeti/Compat.hs \
htools/Ganeti/Confd/Client.hs \ src/Ganeti/Confd/Client.hs \
htools/Ganeti/Confd/Server.hs \ src/Ganeti/Confd/Server.hs \
htools/Ganeti/Confd/Types.hs \ src/Ganeti/Confd/Types.hs \
htools/Ganeti/Confd/Utils.hs \ src/Ganeti/Confd/Utils.hs \
htools/Ganeti/Config.hs \ src/Ganeti/Config.hs \
htools/Ganeti/Daemon.hs \ src/Ganeti/Daemon.hs \
htools/Ganeti/DataCollectors/CLI.hs \ src/Ganeti/DataCollectors/CLI.hs \
htools/Ganeti/DataCollectors/Drbd.hs \ src/Ganeti/DataCollectors/Drbd.hs \
htools/Ganeti/DataCollectors/Program.hs \ src/Ganeti/DataCollectors/Program.hs \
htools/Ganeti/Errors.hs \ src/Ganeti/Errors.hs \
htools/Ganeti/HTools/Backend/IAlloc.hs \ src/Ganeti/HTools/Backend/IAlloc.hs \
htools/Ganeti/HTools/Backend/Luxi.hs \ src/Ganeti/HTools/Backend/Luxi.hs \
htools/Ganeti/HTools/Backend/Rapi.hs \ src/Ganeti/HTools/Backend/Rapi.hs \
htools/Ganeti/HTools/Backend/Simu.hs \ src/Ganeti/HTools/Backend/Simu.hs \
htools/Ganeti/HTools/Backend/Text.hs \ src/Ganeti/HTools/Backend/Text.hs \
htools/Ganeti/HTools/CLI.hs \ src/Ganeti/HTools/CLI.hs \
htools/Ganeti/HTools/Cluster.hs \ src/Ganeti/HTools/Cluster.hs \
htools/Ganeti/HTools/Container.hs \ src/Ganeti/HTools/Container.hs \
htools/Ganeti/HTools/ExtLoader.hs \ src/Ganeti/HTools/ExtLoader.hs \
htools/Ganeti/HTools/Graph.hs \ src/Ganeti/HTools/Graph.hs \
htools/Ganeti/HTools/Group.hs \ src/Ganeti/HTools/Group.hs \
htools/Ganeti/HTools/Instance.hs \ src/Ganeti/HTools/Instance.hs \
htools/Ganeti/HTools/Loader.hs \ src/Ganeti/HTools/Loader.hs \
htools/Ganeti/HTools/Node.hs \ src/Ganeti/HTools/Node.hs \
htools/Ganeti/HTools/PeerMap.hs \ src/Ganeti/HTools/PeerMap.hs \
htools/Ganeti/HTools/Program.hs \ src/Ganeti/HTools/Program.hs \
htools/Ganeti/HTools/Program/Hail.hs \ src/Ganeti/HTools/Program/Hail.hs \
htools/Ganeti/HTools/Program/Hbal.hs \ src/Ganeti/HTools/Program/Hbal.hs \
htools/Ganeti/HTools/Program/Hcheck.hs \ src/Ganeti/HTools/Program/Hcheck.hs \
htools/Ganeti/HTools/Program/Hinfo.hs \ src/Ganeti/HTools/Program/Hinfo.hs \
htools/Ganeti/HTools/Program/Hscan.hs \ src/Ganeti/HTools/Program/Hscan.hs \
htools/Ganeti/HTools/Program/Hspace.hs \ src/Ganeti/HTools/Program/Hspace.hs \
htools/Ganeti/HTools/Program/Hroller.hs \ src/Ganeti/HTools/Program/Hroller.hs \
htools/Ganeti/HTools/Types.hs \ src/Ganeti/HTools/Types.hs \
htools/Ganeti/Hash.hs \ src/Ganeti/Hash.hs \
htools/Ganeti/JQueue.hs \ src/Ganeti/JQueue.hs \
htools/Ganeti/JSON.hs \ src/Ganeti/JSON.hs \
htools/Ganeti/Jobs.hs \ src/Ganeti/Jobs.hs \
htools/Ganeti/Logging.hs \ src/Ganeti/Logging.hs \
htools/Ganeti/Luxi.hs \ src/Ganeti/Luxi.hs \
htools/Ganeti/Network.hs \ src/Ganeti/Network.hs \
htools/Ganeti/Objects.hs \ src/Ganeti/Objects.hs \
htools/Ganeti/OpCodes.hs \ src/Ganeti/OpCodes.hs \
htools/Ganeti/OpParams.hs \ src/Ganeti/OpParams.hs \
htools/Ganeti/Path.hs \ src/Ganeti/Path.hs \
htools/Ganeti/Query/Common.hs \ src/Ganeti/Query/Common.hs \
htools/Ganeti/Query/Filter.hs \ src/Ganeti/Query/Filter.hs \
htools/Ganeti/Query/Group.hs \ src/Ganeti/Query/Group.hs \
htools/Ganeti/Query/Job.hs \ src/Ganeti/Query/Job.hs \
htools/Ganeti/Query/Language.hs \ src/Ganeti/Query/Language.hs \
htools/Ganeti/Query/Node.hs \ src/Ganeti/Query/Node.hs \
htools/Ganeti/Query/Query.hs \ src/Ganeti/Query/Query.hs \
htools/Ganeti/Query/Server.hs \ src/Ganeti/Query/Server.hs \
htools/Ganeti/Query/Types.hs \ src/Ganeti/Query/Types.hs \
htools/Ganeti/Rpc.hs \ src/Ganeti/Rpc.hs \
htools/Ganeti/Runtime.hs \ src/Ganeti/Runtime.hs \
htools/Ganeti/Ssconf.hs \ src/Ganeti/Ssconf.hs \
htools/Ganeti/THH.hs \ src/Ganeti/THH.hs \
htools/Ganeti/Types.hs \ src/Ganeti/Types.hs \
htools/Ganeti/Utils.hs src/Ganeti/Utils.hs
HS_TEST_SRCS = \ HS_TEST_SRCS = \
htest/Test/Ganeti/Attoparsec.hs \ htest/Test/Ganeti/Attoparsec.hs \
...@@ -557,8 +557,8 @@ HS_LIBTEST_SRCS = $(HS_LIB_SRCS) $(HS_TEST_SRCS) ...@@ -557,8 +557,8 @@ HS_LIBTEST_SRCS = $(HS_LIB_SRCS) $(HS_TEST_SRCS)
HS_BUILT_SRCS = \ HS_BUILT_SRCS = \
htest/Test/Ganeti/TestImports.hs \ htest/Test/Ganeti/TestImports.hs \
htools/Ganeti/Constants.hs \ src/Ganeti/Constants.hs \
htools/Ganeti/Version.hs src/Ganeti/Version.hs
HS_BUILT_SRCS_IN = $(patsubst %,%.in,$(HS_BUILT_SRCS)) HS_BUILT_SRCS_IN = $(patsubst %,%.in,$(HS_BUILT_SRCS))
$(RUN_IN_TEMPDIR): | stamp-directories $(RUN_IN_TEMPDIR): | stamp-directories
...@@ -658,7 +658,7 @@ qa_scripts = \ ...@@ -658,7 +658,7 @@ qa_scripts = \
bin_SCRIPTS = bin_SCRIPTS =
if WANT_HTOOLS if WANT_HTOOLS
bin_SCRIPTS += $(filter-out htools/hail,$(HS_PROGS)) bin_SCRIPTS += $(filter-out src/hail,$(HS_PROGS))
install-exec-hook: install-exec-hook:
@mkdir_p@ $(DESTDIR)$(iallocatorsdir) @mkdir_p@ $(DESTDIR)$(iallocatorsdir)
# FIXME: this is a hardcoded logic, instead of auto-resolving # FIXME: this is a hardcoded logic, instead of auto-resolving
...@@ -725,10 +725,10 @@ nodist_sbin_SCRIPTS = \ ...@@ -725,10 +725,10 @@ nodist_sbin_SCRIPTS = \
daemons/ganeti-cleaner daemons/ganeti-cleaner
if ENABLE_CONFD if ENABLE_CONFD
htools/ganeti-confd: htools/hconfd src/ganeti-confd: src/hconfd
cp -f $< $@ cp -f $< $@
nodist_sbin_SCRIPTS += htools/ganeti-confd nodist_sbin_SCRIPTS += src/ganeti-confd
endif endif
python_scripts = \ python_scripts = \
...@@ -770,7 +770,7 @@ myexeclib_SCRIPTS = \ ...@@ -770,7 +770,7 @@ myexeclib_SCRIPTS = \
daemons/daemon-util \ daemons/daemon-util \
tools/kvm-ifup \ tools/kvm-ifup \
$(pkglib_python_scripts) \ $(pkglib_python_scripts) \
htools/mon-collector src/mon-collector
nodist_myexeclib_SCRIPTS = \ nodist_myexeclib_SCRIPTS = \
$(nodist_pkglib_python_scripts) $(nodist_pkglib_python_scripts)
...@@ -826,7 +826,7 @@ EXTRA_DIST = \ ...@@ -826,7 +826,7 @@ EXTRA_DIST = \
$(qa_scripts) \ $(qa_scripts) \
$(HS_LIBTEST_SRCS) $(HS_BUILT_SRCS_IN) \ $(HS_LIBTEST_SRCS) $(HS_BUILT_SRCS_IN) \
$(HS_PROG_SRCS) \ $(HS_PROG_SRCS) \
htools/lint-hints.hs \ src/lint-hints.hs \
htest/cli-tests-defs.sh \ htest/cli-tests-defs.sh \
htest/offline-test.sh \ htest/offline-test.sh \
.ghci .ghci
...@@ -1252,13 +1252,13 @@ regen-vcs-version: ...@@ -1252,13 +1252,13 @@ regen-vcs-version:
fi; \ fi; \
fi fi
htools/Ganeti/Version.hs: htools/Ganeti/Version.hs.in \ src/Ganeti/Version.hs: src/Ganeti/Version.hs.in \
vcs-version $(built_base_sources) vcs-version $(built_base_sources)
set -e; \ set -e; \
VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \ VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \
sed -e "s/%ver%/$$VCSVER/" < $< > $@ sed -e "s/%ver%/$$VCSVER/" < $< > $@
htools/Ganeti/Constants.hs: htools/Ganeti/Constants.hs.in \ src/Ganeti/Constants.hs: src/Ganeti/Constants.hs.in \
lib/constants.py lib/_autoconf.py lib/luxi.py lib/errors.py \ lib/constants.py lib/_autoconf.py lib/luxi.py lib/errors.py \
lib/jstore.py $(RUN_IN_TEMPDIR)\ lib/jstore.py $(RUN_IN_TEMPDIR)\
$(CONVERT_CONSTANTS) $(built_base_sources) \ $(CONVERT_CONSTANTS) $(built_base_sources) \
...@@ -1273,7 +1273,7 @@ htest/Test/Ganeti/TestImports.hs: htest/Test/Ganeti/TestImports.hs.in \ ...@@ -1273,7 +1273,7 @@ htest/Test/Ganeti/TestImports.hs: htest/Test/Ganeti/TestImports.hs.in \
set -e; \ set -e; \
{ cat $< ; \ { cat $< ; \
echo ; \ echo ; \
for name in $(filter-out Ganeti.THH,$(subst /,.,$(patsubst %.hs,%,$(patsubst htools/%,%,$(HS_LIB_SRCS))))) ; do \ for name in $(filter-out Ganeti.THH,$(subst /,.,$(patsubst %.hs,%,$(patsubst src/%,%,$(HS_LIB_SRCS))))) ; do \
echo "import $$name ()" ; \ echo "import $$name ()" ; \
done ; \ done ; \
} > $@ } > $@
...@@ -1604,9 +1604,9 @@ pep8: $(GENERATED_FILES) ...@@ -1604,9 +1604,9 @@ pep8: $(GENERATED_FILES)
--repeat $(pep8_python_code) --repeat $(pep8_python_code)
# FIXME: remove ignore "Use void" when GHC 6.x is deprecated # FIXME: remove ignore "Use void" when GHC 6.x is deprecated
HLINT_EXCLUDES = htools/Ganeti/THH.hs htest/hpc-htools.hs HLINT_EXCLUDES = src/Ganeti/THH.hs htest/hpc-htools.hs
.PHONY: hlint .PHONY: hlint
hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs hlint: $(HS_BUILT_SRCS) src/lint-hints.hs
@test -n "$(HLINT)" || { echo 'hlint' not found during configure; exit 1; } @test -n "$(HLINT)" || { echo 'hlint' not found during configure; exit 1; }
if tty -s; then C="-c"; else C=""; fi; \ if tty -s; then C="-c"; else C=""; fi; \
$(HLINT) --utf8 --report=doc/hs-lint.html --cross $$C \ $(HLINT) --utf8 --report=doc/hs-lint.html --cross $$C \
...@@ -1614,7 +1614,7 @@ hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs ...@@ -1614,7 +1614,7 @@ hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs
--ignore "Use &&&" \ --ignore "Use &&&" \
--ignore "Use void" \ --ignore "Use void" \
--ignore "Reduce duplication" \ --ignore "Reduce duplication" \
--hint htools/lint-hints \ --hint src/lint-hints \
$(filter-out $(HLINT_EXCLUDES),$(HS_LIBTEST_SRCS) $(HS_PROG_SRCS)) $(filter-out $(HLINT_EXCLUDES),$(HS_LIBTEST_SRCS) $(HS_PROG_SRCS))
# a dist hook rule for updating the vcs-version file; this is # a dist hook rule for updating the vcs-version file; this is
...@@ -1711,7 +1711,7 @@ hs-apidoc: $(HS_BUILT_SRCS) ...@@ -1711,7 +1711,7 @@ hs-apidoc: $(HS_BUILT_SRCS)
$(LN_S) ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/HTools/hscolour.css $(LN_S) ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/HTools/hscolour.css
$(LN_S) ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/Confd/hscolour.css $(LN_S) ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/Confd/hscolour.css
set -e ; \ set -e ; \
cd htools; \ cd src; \
if [ "$(HTOOLS_NOCURL)" ]; \ if [ "$(HTOOLS_NOCURL)" ]; \
then OPTGHC="--optghc=$(HTOOLS_NOCURL)"; \ then OPTGHC="--optghc=$(HTOOLS_NOCURL)"; \
else OPTGHC=""; \ else OPTGHC=""; \
...@@ -1722,7 +1722,7 @@ hs-apidoc: $(HS_BUILT_SRCS) ...@@ -1722,7 +1722,7 @@ hs-apidoc: $(HS_BUILT_SRCS)
if [ "$(HTOOLS_REGEX_PCRE)" ]; \ if [ "$(HTOOLS_REGEX_PCRE)" ]; \
then OPTGHC="$$OPTGHC --optghc=$(HTOOLS_REGEX_PCRE)"; \ then OPTGHC="$$OPTGHC --optghc=$(HTOOLS_REGEX_PCRE)"; \
fi; \ fi; \
RELSRCS="$(HS_LIB_SRCS:htools/%=%) $(patsubst htools/%,%,$(filter htools/%,$(HS_BUILT_SRCS)))"; \ RELSRCS="$(HS_LIB_SRCS:src/%=%) $(patsubst src/%,%,$(filter src/%,$(HS_BUILT_SRCS)))"; \
for file in $$RELSRCS; do \ for file in $$RELSRCS; do \
hfile=`echo $$file|sed 's/\\.hs$$//'`.html; \ hfile=`echo $$file|sed 's/\\.hs$$//'`.html; \
$(HSCOLOUR) -css -anchor $$file > ../$(APIDOC_HS_DIR)/$$hfile ; \ $(HSCOLOUR) -css -anchor $$file > ../$(APIDOC_HS_DIR)/$$hfile ; \
...@@ -1732,7 +1732,7 @@ hs-apidoc: $(HS_BUILT_SRCS) ...@@ -1732,7 +1732,7 @@ hs-apidoc: $(HS_BUILT_SRCS)
--source-module="%{MODULE/.//}.html" \ --source-module="%{MODULE/.//}.html" \
--source-entity="%{MODULE/.//}.html#%{NAME}" \ --source-entity="%{MODULE/.//}.html#%{NAME}" \
$$OPTGHC \ $$OPTGHC \
$(filter-out Ganeti/HTools/ExtLoader.hs,$(HS_LIB_SRCS:htools/%=%)) $(filter-out Ganeti/HTools/ExtLoader.hs,$(HS_LIB_SRCS:src/%=%))
.PHONY: TAGS .PHONY: TAGS
TAGS: $(GENERATED_FILES) TAGS: $(GENERATED_FILES)
...@@ -1781,11 +1781,11 @@ hs-coverage: $(haskell_tests) htest/hpc-htools htest/hpc-mon-collector ...@@ -1781,11 +1781,11 @@ hs-coverage: $(haskell_tests) htest/hpc-htools htest/hpc-mon-collector
.PHONY: live-test .PHONY: live-test
live-test: all live-test: all
set -e ; \ set -e ; \
cd htools; \ cd src; \
rm -f .hpc; $(LN_S) ../.hpc .hpc; \ rm -f .hpc; $(LN_S) ../.hpc .hpc; \
rm -f *.tix *.mix; \ rm -f *.tix *.mix; \
./live-test.sh; \ ./live-test.sh; \
hpc sum --union $(HPCEXCL) $(addsuffix .tix,$(HS_PROGS:htools/%=%)) \ hpc sum --union $(HPCEXCL) $(addsuffix .tix,$(HS_PROGS:src/%=%)) \
--output=live-test.tix ; \ --output=live-test.tix ; \
@mkdir_p@ ../$(COVERAGE_HS_DIR) ; \ @mkdir_p@ ../$(COVERAGE_HS_DIR) ; \
hpc markup --destdir=../$(COVERAGE_HS_DIR) live-test \ hpc markup --destdir=../$(COVERAGE_HS_DIR) live-test \
......
...@@ -759,7 +759,7 @@ def WriteHaskellCompletion(sw, script, htools=True, debug=True): ...@@ -759,7 +759,7 @@ def WriteHaskellCompletion(sw, script, htools=True, debug=True):
""" """
if htools: if htools:
cmd = "./htools/htools" cmd = "./src/htools"
env = {"HTOOLS": script} env = {"HTOOLS": script}
script_name = script script_name = script
func_name = "htools_%s" % script func_name = "htools_%s" % script
...@@ -854,12 +854,12 @@ def main(): ...@@ -854,12 +854,12 @@ def main():
# ganeti-confd, if enabled # ganeti-confd, if enabled
if _autoconf.ENABLE_CONFD: if _autoconf.ENABLE_CONFD:
WriteHaskellCompletion(sw, "htools/ganeti-confd", htools=False, WriteHaskellCompletion(sw, "src/ganeti-confd", htools=False,
debug=debug) debug=debug)
# mon-collector, if monitoring is enabled # mon-collector, if monitoring is enabled
if _autoconf.ENABLE_MONITORING: if _autoconf.ENABLE_MONITORING:
WriteHaskellCmdCompletion(sw, "htools/mon-collector", debug=debug) WriteHaskellCmdCompletion(sw, "src/mon-collector", debug=debug)
# Reset extglob to original value # Reset extglob to original value
sw.Write("[[ -n \"$gnt_shopt_extglob\" ]] && $gnt_shopt_extglob") sw.Write("[[ -n \"$gnt_shopt_extglob\" ]] && $gnt_shopt_extglob")
......
...@@ -16,10 +16,10 @@ ln -s $PWD/doc/examples $tmpdir/doc ...@@ -16,10 +16,10 @@ ln -s $PWD/doc/examples $tmpdir/doc
mv $tmpdir/lib $tmpdir/ganeti mv $tmpdir/lib $tmpdir/ganeti
ln -T -s $tmpdir/ganeti $tmpdir/lib ln -T -s $tmpdir/ganeti $tmpdir/lib
mkdir -p $tmpdir/htools $tmpdir/htest mkdir -p $tmpdir/src $tmpdir/htest
for hfile in htools ganeti-confd mon-collector; do for hfile in htools ganeti-confd mon-collector; do
if [ -e htools/$hfile ]; then if [ -e src/$hfile ]; then
ln -s $PWD/htools/$hfile $tmpdir/htools/ ln -s $PWD/src/$hfile $tmpdir/src/
fi fi
done done
......
...@@ -134,7 +134,7 @@ Or, more interactively:: ...@@ -134,7 +134,7 @@ Or, more interactively::
$ ghci $ ghci
λ> :set -ddump-splices λ> :set -ddump-splices
λ> :l htools/Ganeti/Objects.hs λ> :l src/Ganeti/Objects.hs
And you will get the spliced code as the module is loaded. And you will get the spliced code as the module is loaded.
...@@ -150,9 +150,9 @@ build profiling code. The recommended way is to run ``make hs-prof``, ...@@ -150,9 +150,9 @@ build profiling code. The recommended way is to run ``make hs-prof``,
or alternatively the manual sequence is:: or alternatively the manual sequence is::
$ make clean $ make clean
$ make htools/htools HEXTRA="-osuf .o" $ make src/htools HEXTRA="-osuf .o"
$ rm htools/htools $ rm src/htools
$ make htools/htools HEXTRA="-osuf .prof_o -prof -auto-all" $ make src/htools HEXTRA="-osuf .prof_o -prof -auto-all"
This will build the binary twice, per the TemplateHaskell This will build the binary twice, per the TemplateHaskell
documentation, the second one with profiling enabled. documentation, the second one with profiling enabled.
......
../htools/htools.hs ../src/htools.hs
\ No newline at end of file \ No newline at end of file
../htools/mon-collector.hs ../src/mon-collector.hs
\ No newline at end of file \ No newline at end of file
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment