From: Guido Trotter <[email protected]>

cmdlib.py has grown *really* too much. Move it into its own package to
allow splitting it further.

Signed-off-by: Guido Trotter <[email protected]>
Signed-off-by: Thomas Thrainer <[email protected]>

NOTE: I (Thomas) stripped the big part of the patch which contained cmdlib.py 
twice
(deletion, added again as __init__.py) in order to keep the mail smaller, but it
actually got moved ;-). This note wont be in the commit neither.

---
 Makefile.am            |     7 +-
 lib/cmdlib.py          | 17117 -----------------------------------------------
 lib/cmdlib/__init__.py | 17117 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 17123 insertions(+), 17118 deletions(-)
 delete mode 100644 lib/cmdlib.py
 create mode 100644 lib/cmdlib/__init__.py

diff --git a/Makefile.am b/Makefile.am
index d7cc0b7..4a68bdc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,6 +40,7 @@ SHELL_ENV_INIT = autotools/shell-env-init
 # Note: these are automake-specific variables, and must be named after
 # the directory + 'dir' suffix
 clientdir = $(pkgpythondir)/client
+cmdlibdir = $(pkgpythondir)/cmdlib
 hypervisordir = $(pkgpythondir)/hypervisor
 httpdir = $(pkgpythondir)/http
 masterddir = $(pkgpythondir)/masterd
@@ -105,6 +106,7 @@ DIRS = \
        lib \
        lib/build \
        lib/client \
+       lib/cmdlib \
        lib/confd \
        lib/http \
        lib/hypervisor \
@@ -260,7 +262,6 @@ pkgpython_PYTHON = \
        lib/bdev.py \
        lib/bootstrap.py \
        lib/cli.py \
-       lib/cmdlib.py \
        lib/compat.py \
        lib/config.py \
        lib/constants.py \
@@ -306,6 +307,9 @@ client_PYTHON = \
        lib/client/gnt_os.py \
        lib/client/gnt_storage.py
 
+cmdlib_PYTHON = \
+       lib/cmdlib/__init__.py
+
 hypervisor_PYTHON = \
        lib/hypervisor/__init__.py \
        lib/hypervisor/hv_base.py \
@@ -1240,6 +1244,7 @@ all_python_code = \
        $(python_tests) \
        $(pkgpython_PYTHON) \
        $(client_PYTHON) \
+       $(cmdlib_PYTHON) \
        $(hypervisor_PYTHON) \
        $(rapi_PYTHON) \
        $(server_PYTHON) \
1.8.2.1

Reply via email to