clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 8c8c5ab 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.2 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs native gawk build
|
---|
4 | # ---------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=gawk-native.log
|
---|
13 |
|
---|
14 | set_libdirname
|
---|
15 | setup_multiarch
|
---|
16 |
|
---|
17 | unpack_tarball gawk-${GAWK_VER} &&
|
---|
18 | cd ${PKGDIR}
|
---|
19 |
|
---|
20 | # Following mimics gawk patch
|
---|
21 | files="Makefile.in awklib/Makefile.in"
|
---|
22 | for file in ${files}; do
|
---|
23 |
|
---|
24 | test -f ${file}-ORIG ||
|
---|
25 | cp ${file} ${file}-ORIG
|
---|
26 |
|
---|
27 | sed -e 's:libexecdir = @libexecdir@/awk:libexecdir = @libexecdir@:g' \
|
---|
28 | -e 's:datadir = @datadir@/awk:datadir = @datadir@/gawk:g' \
|
---|
29 | ${file}-ORIG > ${file}
|
---|
30 | done
|
---|
31 |
|
---|
32 | max_log_init Gawk ${GAWK_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
33 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
34 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
35 | ./configure --prefix=/usr \
|
---|
36 | --libexecdir=/usr/${libdirname}/gawk \
|
---|
37 | --bindir=/bin \
|
---|
38 | >> ${LOGFILE} 2>&1 &&
|
---|
39 | echo " o Configure OK" &&
|
---|
40 |
|
---|
41 | min_log_init ${BUILDLOGS} &&
|
---|
42 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
43 | >> ${LOGFILE} 2>&1 &&
|
---|
44 | echo " o Build OK" &&
|
---|
45 |
|
---|
46 | min_log_init ${TESTLOGS} &&
|
---|
47 | make check \
|
---|
48 | >> ${LOGFILE} 2>&1 &&
|
---|
49 | echo " o Test OK" &&
|
---|
50 |
|
---|
51 | min_log_init ${INSTLOGS} &&
|
---|
52 | make install \
|
---|
53 | >> ${LOGFILE} 2>&1 &&
|
---|
54 | echo " o ALL OK" || barf
|
---|
55 |
|
---|
56 | # When specifying --bindir the symlink doesn't get created (???)
|
---|
57 | ln -sf gawk /bin/awk
|
---|
58 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.