Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

oebb.sh: use OE_LAYERS_TXT variable instead of repeating layers.txt path

* some setups could move layers.txt e.g. to conf subdirectory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
commit 3b0a7f992fe2266aa4ba31ea5c8dd8d207a02c99 1 parent 0dbde44
@shr-project shr-project authored koenkooi committed
Showing with 6 additions and 5 deletions.
  1. +6 −5 oebb.sh
View
11 oebb.sh
@@ -135,6 +135,7 @@ else
OE_BUILD_DIR=${OE_BASE}
OE_BUILD_TMPDIR="${OE_BUILD_DIR}/build/tmp-${DISTRO_DIRNAME}"
OE_SOURCE_DIR=${OE_BASE}/sources
+ OE_LAYERS_TXT="${OE_SOURCE_DIR}/layers.txt"
export BUILDDIR=${OE_BUILD_DIR}
mkdir -p ${OE_BUILD_DIR}
@@ -280,7 +281,7 @@ function update_oe()
fi
#manage meta-openembedded and meta-angstrom with layerman
- env gawk -v command=update -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
+ env gawk -v command=update -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
}
###############################################################################
@@ -326,7 +327,7 @@ _EOF
function tag_layers()
{
set_environment
- env gawk -v command=tag -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
+ env gawk -v command=tag -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
echo $TAG >> ${OE_BASE}/tags
}
@@ -336,7 +337,7 @@ function tag_layers()
function changelog()
{
set_environment
- env gawk -v command=changelog -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
+ env gawk -v command=changelog -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
}
###############################################################################
@@ -346,7 +347,7 @@ function layer_info()
{
set_environment
rm -f ${OE_SOURCE_DIR}/info.txt
- env gawk -v command=info -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
+ env gawk -v command=info -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
echo
echo "Showing contents of ${OE_SOURCE_DIR}/info.txt:"
echo
@@ -360,7 +361,7 @@ function layer_info()
function checkout()
{
set_environment
-env gawk -v command=checkout -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
+env gawk -v command=checkout -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
}
Please sign in to comment.
Something went wrong with that request. Please try again.