mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-17 08:53:26 +00:00
obs: build_all.sh: serach scripts in own dir.
update scripts are relative to this script go to it and then try to update. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
b8a41a8994
commit
9c64f571f6
@ -10,7 +10,8 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
script_dir=$(dirname "$0")
|
readonly script_name="$(basename "${BASH_SOURCE[0]}")"
|
||||||
|
readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
#Note:Lets update qemu and the kernel first, they take longer to build.
|
#Note:Lets update qemu and the kernel first, they take longer to build.
|
||||||
#Note: runtime is build at the end to get the version from all its dependencies.
|
#Note: runtime is build at the end to get the version from all its dependencies.
|
||||||
projects=(
|
projects=(
|
||||||
@ -62,6 +63,7 @@ pass = ${OBS_PASS}
|
|||||||
eom
|
eom
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pushd "${script_dir}"
|
||||||
for p in "${projects[@]}"; do
|
for p in "${projects[@]}"; do
|
||||||
pushd "$p" >>/dev/null
|
pushd "$p" >>/dev/null
|
||||||
update_cmd="./update.sh"
|
update_cmd="./update.sh"
|
||||||
@ -77,6 +79,7 @@ eom
|
|||||||
bash -c "${update_cmd} ${branch}"
|
bash -c "${update_cmd} ${branch}"
|
||||||
popd >>/dev/null
|
popd >>/dev/null
|
||||||
done
|
done
|
||||||
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
main $@
|
main $@
|
||||||
|
Loading…
Reference in New Issue
Block a user