source: scripts/scripts/build-init.sh@ f6180d2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f6180d2 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 1002 bytes
Line 
1#!/bin/bash
2#
3# build-init.sh
4#
5# Source Functions for cross-lfs build
6# -----------------------------------------
7# Authors: Ryan Oliver (ryan.oliver@pha.com.au)
8#
9# $LastChangedBy$
10# $LastChangedDate$
11# $LastChangedRevision$
12#
13
14# Check for stuff
15#----------------
16
17# Check for a grep which takes -E
18for path in "" /bin/ /usr/bin/ /usr/xpg4/bin/ /usr/local/bin/ ; do
19 echo X | ${path}grep -E X > /dev/null 2>&1 &&
20 {
21 export GREP="${path}grep"
22 break
23 }
24done
25
26GREP=egrep
27if [ "${GREP}" = "" ]; then
28 echo "install a grep on the system that handles -E"
29 exit 1
30fi
31
32# Set your umask
33umask 0022
34
35#set shell to allow glob style matches
36# ( bash specific )
37shopt -s extglob
38
39set +h
40
41. ${SCRIPTS}/funcs/log-funcs.sh
42. ${SCRIPTS}/funcs/tarball-funcs.sh
43. ${SCRIPTS}/funcs/patching-funcs.sh
44. ${SCRIPTS}/funcs/kernel_stub_header-funcs.sh
45. ${SCRIPTS}/funcs/binutils-funcs.sh
46. ${SCRIPTS}/funcs/multiarch-funcs.sh
47. ${SCRIPTS}/funcs/stub_header-funcs.sh
48. ${SCRIPTS}/funcs/glibc-funcs.sh
Note: See TracBrowser for help on using the repository browser.