scripts/functions
changeset 1904 ec847e60981d
parent 1798 7051d758475a
child 1896 7e81cd6ca0b6
     1.1 --- a/scripts/functions	Wed Feb 03 00:24:24 2010 +0100
     1.2 +++ b/scripts/functions	Tue Apr 13 00:43:09 2010 +0200
     1.3 @@ -934,6 +934,13 @@
     1.4                             /^(UID|EUID)=/d;
     1.5                             /^(FUNCNAME|GROUPS|PPID|SHELLOPTS)=/d;' >"${state_dir}/env.sh"
     1.6  
     1.7 +    if [ "${CT_COMPLIBS_SHARED}" != "y" ]; then
     1.8 +        CT_DoLog DEBUG "  Saving CT_COMPLIBS_DIR='${CT_COMPLIBS_DIR}'"
     1.9 +        CT_Pushd "${CT_COMPLIBS_DIR}"
    1.10 +        CT_DoExecLog DEBUG tar cv${tar_opt}f "${state_dir}/complibs_dir.tar${tar_ext}" .
    1.11 +        CT_Popd
    1.12 +    fi
    1.13 +
    1.14      CT_DoLog DEBUG "  Saving CT_CONFIG_DIR='${CT_CONFIG_DIR}'"
    1.15      CT_Pushd "${CT_CONFIG_DIR}"
    1.16      CT_DoExecLog DEBUG tar cv${tar_opt}f "${state_dir}/config_dir.tar${tar_ext}" .
    1.17 @@ -1012,6 +1019,13 @@
    1.18      CT_DoExecLog DEBUG tar xv${tar_opt}f "${state_dir}/config_dir.tar${tar_ext}"
    1.19      CT_Popd
    1.20  
    1.21 +    if [ "${CT_COMPLIBS_SHARED}" != "y" ]; then
    1.22 +        CT_DoLog DEBUG "  Restoring CT_COMPLIBS_DIR='${CT_COMPLIBS_DIR}'"
    1.23 +        CT_Pushd "${CT_COMPLIBS_DIR}"
    1.24 +        CT_DoExecLog DEBUG tar xv${tar_opt}f "${state_dir}/complibs_dir.tar${tar_ext}"
    1.25 +        CT_Popd
    1.26 +    fi
    1.27 +
    1.28      # Restore the environment, discarding any error message
    1.29      # (for example, read-only bash internals)
    1.30      CT_DoLog DEBUG "  Restoring environment"