source: scripts/native-scripts/temp-expect.sh@ 0ee931e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0ee931e was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/bin/sh
2
3# cross-lfs temporary expect build (for running testsuites)
4# ---------------------------------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=expect-temp.log
13
14# Test if the 64 script has been called.
15SELF=`basename ${0}`
16set_buildenv
17set_libdirname
18setup_multiarch
19
20if [ "${USE_SYSROOT}" = "Y" ]; then
21 BUILD_PREFIX=/usr
22else
23 BUILD_PREFIX=${TGT_TOOLS}
24fi
25
26if [ ! "${libdirname}" = "lib" ]; then
27 extra_conf="--libdir=${BUILD_PREFIX}/${libdirname}"
28fi
29
30unpack_tarball expect-${EXPECT_VER} &&
31cd ${PKGDIR}
32
33case ${EXPECT_VER} in
34 5.3[89]* | 5.40* )
35 #apply_patch expect-${EXPECT_VER}
36 apply_patch expect-5.39.0-spawn
37 ;;
38esac
39
40max_log_init Expect ${EXPECT_VER} "temp (shared)" ${CONFLOGS} ${LOG}
41CC="${CC-gcc} ${ARCH_CFLAGS}" \
42CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
43./configure --prefix=${BUILD_PREFIX} \
44 --with-tcl=${BUILD_PREFIX}/${libdirname} \
45 --with-x=no --disable-symbols ${extra_conf} \
46 --cache-file=/dev/null \
47 >> ${LOGFILE} 2>&1 &&
48echo " o Configure OK" &&
49
50min_log_init ${BUILDLOGS} &&
51make ${PMFLAGS} LDFLAGS="-s" \
52 >> ${LOGFILE} 2>&1 &&
53echo " o Build OK" || barf
54
55min_log_init ${TESTLOGS} &&
56# 1 test may fail... hopefully not a real concern...
57make test \
58 >> ${LOGFILE} 2>&1 &&
59echo " o Test OK" || errmsg
60
61min_log_init ${INSTLOGS} &&
62make install \
63 >> ${LOGFILE} 2>&1 &&
64echo " o ALL OK" || barf
Note: See TracBrowser for help on using the repository browser.