diff options
| -rwxr-xr-x | scripts/oe-buildenv-internal | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 9fae3b4ec3..c8905524ff 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
| @@ -18,6 +18,18 @@ | |||
| 18 | # along with this program; if not, write to the Free Software | 18 | # along with this program; if not, write to the Free Software |
| 19 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 | 20 | ||
| 21 | if ! $(return >/dev/null 2>&1) ; then | ||
| 22 | echo 'oe-buildenv-internal: error: this script must be sourced' | ||
| 23 | echo '' | ||
| 24 | echo 'Usage: . $OEROOT/scripts/oe-buildenv-internal &&' | ||
| 25 | echo '' | ||
| 26 | echo 'OpenEmbedded oe-buildenv-internal - an internal script that is' | ||
| 27 | echo 'used in oe-init-build-env and oe-init-build-env-memres to' | ||
| 28 | echo 'initialize oe build environment' | ||
| 29 | echo '' | ||
| 30 | exit 2 | ||
| 31 | fi | ||
| 32 | |||
| 21 | # It is assumed OEROOT is already defined when this is called | 33 | # It is assumed OEROOT is already defined when this is called |
| 22 | if [ -z "$OEROOT" ]; then | 34 | if [ -z "$OEROOT" ]; then |
| 23 | echo >&2 "Error: OEROOT is not defined!" | 35 | echo >&2 "Error: OEROOT is not defined!" |
