source: scripts/scripts/native-scripts/native-grep.sh @ d7f7ff5

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since d7f7ff5 was d7f7ff5, checked in by Jim Gifford <clfs@…>, 18 years ago

r2509@server (orig r1248): ryan | 2006-03-10 02:08:10 -0800

r1298@rei: lfs | 2006-03-09 18:48:02 +1100
remove .patch from patch filename


  • Property mode set to 100755
File size: 930 bytes
Line 
1#!/bin/bash
2
3# cross-lfs native grep build
4# ---------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=grep-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball grep-${GREP_VER} &&
18cd ${PKGDIR}
19
20case ${GREP_VER} in
21   2.5.1a ) apply_patch grep-2.5.1a-redhat_fixes-2 ;;
22esac
23
24max_log_init Grep ${GREP_VER} "native (shared)" ${CONFLOGS} ${LOG}
25CC="${CC-gcc} ${ARCH_CFLAGS}" \
26CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
27./configure --prefix=/usr --bindir=/bin \
28   >> ${LOGFILE} 2>&1 &&
29echo " o Configure OK" &&
30
31min_log_init ${BUILDLOGS} &&
32make ${PMFLAGS} LDFLAGS="-s" \
33   >> ${LOGFILE} 2>&1 &&
34echo " o Build OK" || barf
35
36# Make Grep tests executable
37chmod 750 ./tests/* &&
38
39#min_log_init ${TESTLOGS} &&
40#make check \
41#   >>  ${LOGFILE} 2>&1 &&
42#echo " o Test OK" || errmsg
43
44min_log_init ${INSTLOGS} &&
45make install \
46   >> ${LOGFILE} 2>&1 &&
47echo " o ALL OK" || barf
48
Note: See TracBrowser for help on using the repository browser.