source: scripts/native-scripts/native-ed.sh@ d8ed990

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d8ed990 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: 896 bytes
Line 
1#!/bin/bash
2
3# cross-lfs native ed build
4# -------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=ed-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball ed-${ED_VER}
18cd ${PKGDIR}
19
20# TODO: patch is for ed 0.2, if this barfs check if patch needed
21# for this version of ed
22apply_patch ed-0.2-mkstemp-1
23
24max_log_init Ed ${ED_VER} "native (shared)" ${CONFLOGS} ${LOG}
25CC="${CC-gcc} ${ARCH_CFLAGS}" \
26CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
27./configure --prefix=/usr \
28 >> ${LOGFILE} 2>&1 &&
29echo " o Configure OK" &&
30
31min_log_init ${BUILDLOGS} &&
32make LDFLAGS="-s" \
33 >> ${LOGFILE} 2>&1 &&
34echo " o Build OK" &&
35
36min_log_init ${TESTLOGS} &&
37make check \
38 >> ${LOGFILE} 2>&1 &&
39echo " o Test OK" &&
40
41min_log_init ${INSTLOGS} &&
42make install \
43 >> ${LOGFILE} 2>&1 &&
44echo " o ALL OK" || barf
45
46mv -f /usr/bin/{ed,red} /bin
47
Note: See TracBrowser for help on using the repository browser.