summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-24 17:39:45 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-24 17:39:45 (GMT)
commit6c060f2375cf0ef3402b8d8b36fdc6852ba82bd5 (patch)
tree66abe451d4c1e5804ca103c760404bd423c44a32 /scripts
parent0e4c0c8815b4fba9b3d619dead685954a0f56faf (diff)
Finally make ncurses-5.7 corctly build:
- find the executables extension (needed under some OS, like Winblows) - build tic in // - simplify the make and install command lines /trunk/scripts/build/debug/300-gdb.sh | 10 7 3 0 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/debug/300-gdb.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index fcc7444..2c2c27b 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -158,13 +158,17 @@ do_debug_gdb_build() {
--with-build-cflags="${CT_CFLAGS_FOR_HOST}" \
${ncurses_opts}
+ # Under some operating systems (eg. Winblows), there is an
+ # extension appended to executables. Find that.
+ tic_ext=$(grep -E '^x[[:space:]]*=' progs/Makefile |sed -r -e 's/^.*=[[:space:]]*//;')
+
CT_DoLog EXTRA "Building ncurses tic"
- CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/include"
- CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/progs" tic
+ CT_DoExecLog ALL make ${PARALLELMFLAGS} -C include
+ CT_DoExecLog ALL make ${PARALLELMFLAGS} -C progs "tic${tic_ext}"
CT_DoLog EXTRA "Installing ncurses tic"
CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/bin"
- CT_DoExecLog ALL install -m 0755 "${CT_BUILD_DIR}/build-ncurses-build-tic/progs/tic" "${CT_PREFIX_DIR}/bin/tic"
+ CT_DoExecLog ALL install -m 0755 "progs/tic${tic_ext}" "${CT_PREFIX_DIR}/bin"
CT_EndStep