scripts/functions
changeset 1225 4b065e7e2130
parent 1219 2b875ed306c2
child 1226 b5db8db61f93
     1.1 --- a/scripts/functions	Tue Mar 03 17:41:59 2009 +0000
     1.2 +++ b/scripts/functions	Wed Mar 04 17:59:35 2009 +0000
     1.3 @@ -901,51 +901,3 @@
     1.4          rm -f "${state_dir}/tail.log"
     1.5      fi
     1.6  }
     1.7 -
     1.8 -do_finish() {
     1.9 -    CT_DoStep INFO "Cleaning-up the toolchain's directory"
    1.10 -
    1.11 -    CT_DoLog EXTRA "Removing access to the build system tools"
    1.12 -    find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    1.13 -    find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    1.14 -    CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/makeinfo"
    1.15 -
    1.16 -    if [ "${CT_BARE_METAL}" != "y" ]; then
    1.17 -        CT_DoLog EXTRA "Installing the populate helper"
    1.18 -        sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \
    1.19 -               -e 's|@@CT_install@@|'"${install}"'|g;'  \
    1.20 -               -e 's|@@CT_bash@@|'"${bash}"'|g;'        \
    1.21 -               -e 's|@@CT_grep@@|'"${grep}"'|g;'        \
    1.22 -               -e 's|@@CT_make@@|'"${make}"'|g;'        \
    1.23 -               -e 's|@@CT_awk@@|'"${awk}"'|g;'          \
    1.24 -               -e 's|@@CT_sed@@|'"${sed}"'|g;'          \
    1.25 -               "${CT_LIB_DIR}/scripts/populate.in"      \
    1.26 -               >"${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
    1.27 -        CT_DoExecLog ALL chmod 755 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
    1.28 -    fi
    1.29 -
    1.30 -    # Create the aliases to the target tools
    1.31 -    CT_DoLog EXTRA "Creating toolchain aliases"
    1.32 -    CT_Pushd "${CT_PREFIX_DIR}/bin"
    1.33 -    for t in "${CT_TARGET}-"*; do
    1.34 -        if [ -n "${CT_TARGET_ALIAS}" ]; then
    1.35 -            _t=$(echo "$t" |sed -r -e 's/^'"${CT_TARGET}"'-/'"${CT_TARGET_ALIAS}"'-/;')
    1.36 -            CT_DoExecLog ALL ln -sv "${t}" "${_t}"
    1.37 -        fi
    1.38 -        if [ -n "${CT_TARGET_ALIAS_SED_EXPR}" ]; then
    1.39 -            _t=$(echo "$t" |sed -r -e "${CT_TARGET_ALIAS_SED_EXPR}")
    1.40 -            CT_DoExecLog ALL ln -sv "${t}" "${_t}"
    1.41 -        fi
    1.42 -    done
    1.43 -    CT_Popd
    1.44 -
    1.45 -    # Remove the generated documentation files
    1.46 -    if [ "${CT_REMOVE_DOCS}" = "y" ]; then
    1.47 -        CT_DoLog EXTRA "Removing installed documentation"
    1.48 -        CT_DoForceRmdir "${CT_PREFIX_DIR}/"{,usr/}{man,info}
    1.49 -        CT_DoForceRmdir "${CT_SYSROOT_DIR}/"{,usr/}{man,info}
    1.50 -        CT_DoForceRmdir "${CT_DEBUGROOT_DIR}/"{,usr/}{man,info}
    1.51 -    fi
    1.52 -
    1.53 -    CT_EndStep
    1.54 -}