diff options
author | Dima Krasner <dima@dimakrasner.com> | 2019-01-23 09:52:04 +0200 |
---|---|---|
committer | Dima Krasner <dima@dimakrasner.com> | 2019-01-23 09:52:04 +0200 |
commit | 2870ffae518798e2f18c110a91a420d65a6e712b (patch) | |
tree | dc1068f97b6db16de787301fdad27a0ab9cf489b /scripts/functions | |
parent | 1635c149a4118736e2f0b2901ae4589eea92e194 (diff) | |
download | crosstool-ng-2870ffae518798e2f18c110a91a420d65a6e712b.tar.gz crosstool-ng-2870ffae518798e2f18c110a91a420d65a6e712b.tar.bz2 crosstool-ng-2870ffae518798e2f18c110a91a420d65a6e712b.zip |
Moved uClibc configuration installation to uClibc.sh
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index c97b9f40..877426b7 100644 --- a/scripts/functions +++ b/scripts/functions @@ -2453,3 +2453,14 @@ CT_InstallCopyingInformation() shopt -u nullglob } + +CT_InstallConfigurationFile() +{ + local path="${1}" + local suffix="${2}" + + CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/bin" + CT_DoExecLog DEBUG ${install} -m 0755 "${CT_LIB_DIR}/scripts/toolchain-config.in" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-$suffix.config" + CT_DoExecLog DEBUG ${sed} -i -e 's,@@grep@@,"'"${grep}"'",;' "${CT_PREFIX_DIR}/bin/${CT_TARGET}-$suffix.config" + bzip2 -c -9 "$1" >>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-$suffix.config" +} |