clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago |
r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive
|
-
Property mode
set to
100755
|
File size:
1002 bytes
|
Rev | Line | |
---|
[617118d] | 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
|
---|
| 18 | for 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 | }
|
---|
| 24 | done
|
---|
| 25 |
|
---|
| 26 | GREP=egrep
|
---|
| 27 | if [ "${GREP}" = "" ]; then
|
---|
| 28 | echo "install a grep on the system that handles -E"
|
---|
| 29 | exit 1
|
---|
| 30 | fi
|
---|
| 31 |
|
---|
| 32 | # Set your umask
|
---|
| 33 | umask 0022
|
---|
| 34 |
|
---|
| 35 | #set shell to allow glob style matches
|
---|
| 36 | # ( bash specific )
|
---|
| 37 | shopt -s extglob
|
---|
| 38 |
|
---|
| 39 | set +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.