• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/support/dependencies/dependencies.sh
Yann E. MORINYann E. MORIN committed e09e1873a1b26 Dec 2016
Raw file
Source viewDiff to previous
 
1
#!/bin/sh
2
# vi: set sw=4 ts=4:
3
​
4
export LC_ALL=C
5
​
6
# Verify that grep works
7
echo "WORKS" | grep "WORKS" >/dev/null 2>&1
8
if test $? != 0 ; then
9
    echo
10
    echo "grep doesn't work"
11
    exit 1
12
fi
13
​
14
# sanity check for CWD in LD_LIBRARY_PATH
15
# try not to rely on egrep..
16
if test -n "$LD_LIBRARY_PATH" ; then
17
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep '::' >/dev/null 2>&1 ||
18
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep ':\.:' >/dev/null 2>&1 ||
19
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep 'TRiGGER_start:' >/dev/null 2>&1 ||
20
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep 'TRiGGER_start\.:' >/dev/null 2>&1 ||
21
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep ':TRiGGER_end' >/dev/null 2>&1 ||
22
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep ':\.TRiGGER_end' >/dev/null 2>&1 ||
23
    echo TRiGGER_start"$LD_LIBRARY_PATH"TRiGGER_end | grep 'TRiGGER_start\.TRiGGER_end' >/dev/null 2>&1
24
    if test $? = 0; then
25
        echo
26
        echo "You seem to have the current working directory in your"
27
        echo "LD_LIBRARY_PATH environment variable. This doesn't work."
28
        exit 1;
29
    fi
30
fi;
31
​
32
# sanity check for CWD in PATH. Having the current working directory
33
# in the PATH makes the toolchain build process break.
34
# try not to rely on egrep..
35
if test -n "$PATH" ; then
36
    echo TRiGGER_start"$PATH"TRiGGER_end | grep ':\.:' >/dev/null 2>&1 ||
37
    echo TRiGGER_start"$PATH"TRiGGER_end | grep 'TRiGGER_start\.:' >/dev/null 2>&1 ||
38
    echo TRiGGER_start"$PATH"TRiGGER_end | grep ':\.TRiGGER_end' >/dev/null 2>&1 ||
39
    echo TRiGGER_start"$PATH"TRiGGER_end | grep 'TRiGGER_start\.TRiGGER_end' >/dev/null 2>&1
40
    if test $? = 0; then
41
        echo
42
        echo "You seem to have the current working directory in your"
43
        echo "PATH environment variable. This doesn't work."
44
        exit 1;
45
    fi
46
fi;
47
​
48
if test -n "$PERL_MM_OPT" ; then
49
    echo
50
    echo "You have PERL_MM_OPT defined because Perl local::lib"
51
    echo "is installed on your system. Please unset this variable"
52
    echo "before starting Buildroot, otherwise the compilation of"
53
    echo "Perl related packages will fail"
54
    exit 1
55
fi
56
​
57
check_prog_host()
58
{
59
    prog="$1"
60
    if ! which $prog > /dev/null ; then
61
        echo >&2
62
        echo "You must install '$prog' on your build machine" >&2
63
        exit 1
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.