scripts/addToolsVersion: properly handle .in vs. .in.2
While most components have their version in the .in file, some
have it in the .in.2 (eg. elf2flt).
Currently, to handle this case, we indiscriminately munge both files,
but this is wrong: in the elf2flt case, if we add a binutils version,
we do not want it to be added to elf2flt, and conversely.
So, for each tool, we need to explicitly know what file to munge.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1 # Build script for strace
3 do_debug_strace_get() {
4 local base_url="http://downloads.sourceforge.net/project/strace/strace"
5 CT_GetFile "strace-${CT_STRACE_VERSION}" "${base_url}/${CT_STRACE_VERSION}"
6 # Downloading from sourceforge leaves garbage, cleanup
7 CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*
10 do_debug_strace_extract() {
11 CT_Extract "strace-${CT_STRACE_VERSION}"
12 CT_Patch "strace" "${CT_STRACE_VERSION}"
15 do_debug_strace_build() {
16 CT_DoStep INFO "Installing strace"
17 mkdir -p "${CT_BUILD_DIR}/build-strace"
18 CT_Pushd "${CT_BUILD_DIR}/build-strace"
20 CT_DoLog EXTRA "Configuring strace"
22 "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure" \
27 CT_DoLog EXTRA "Building strace"
30 CT_DoLog EXTRA "Installing strace"
31 CT_DoExecLog ALL make DESTDIR="${CT_DEBUGROOT_DIR}" install