source: scripts/build-init.sh@ 23b6afb

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 23b6afb 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: 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.