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