source: scripts/host-scripts/host-flex.sh@ 60454e2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 60454e2 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.0 KB
Line 
1#!/bin/bash
2
3### FLEX ###
4
5cd ${SRC}
6LOG=flex-buildhost.build
7
8unpack_tarball flex-${FLEX_VER} &&
9cd ${PKGDIR}
10
11case ${FLEX_VER} in
12 2.5.31 )
13 # Fix brokenness in flex-2.5.31
14 apply_patch flex-2.5.31-debian_fixes-2
15 ;;
16esac
17
18max_log_init Flex ${FLEX_VER} "buildhost (shared)" ${CONFLOGS} ${LOG}
19CC="${CC-gcc}" CFLAGS="-O2 -pipe" ./configure --prefix=${HST_TOOLS} \
20 --disable-nls >> ${LOGFILE} 2>&1 &&
21echo " o Configure OK" &&
22
23min_log_init ${BUILDLOGS} &&
24make ${PMFLAGS} LDFLAGS="-s" \
25 >> ${LOGFILE} 2>&1 &&
26echo " o Build OK" || barf
27
28min_log_init ${TESTLOGS} &&
29grep "^bigcheck:" Makefile &&
30{
31 make bigcheck \
32 >> ${LOGFILE} 2>&1
33} || {
34 make check \
35 >> ${LOGFILE} 2>&1
36} &&
37echo " o Test OK" || errmsg
38
39min_log_init ${INSTLOGS} &&
40make install \
41 >> ${LOGFILE} 2>&1 &&
42echo " o ALL OK" || barf
43
44# Create lex wrapper
45cat > ${HST_TOOLS}/bin/lex << "EOF"
46#!/bin/sh
47# Begin ${HST_TOOLS}/bin/lex
48
49exec ${HST_TOOLS}/bin/flex -l "$@"
50
51# End ${HST_TOOLS}/bin/lex
52EOF
53
54chmod 755 ${HST_TOOLS}/bin/lex
55
Note: See TracBrowser for help on using the repository browser.