40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
source ./config.sh
|
||
|
|
||
|
echo "Updating the package from the $GIT_BRANCH branch of the local repos."
|
||
|
echo "(If SUCCESS is not printed upon completion, see /tmp/git2pkg.log for issues)"
|
||
|
|
||
|
# TEMPORARY! FOR NOW WE REQUIRE THESE LOCALLY TO DO WORK ON PACKAGE
|
||
|
REQUIRED_LOCAL_REPO_MAP=(
|
||
|
~/git/qemu-opensuse
|
||
|
~/git/qemu-seabios
|
||
|
~/git/qemu-ipxe
|
||
|
~/git/qemu-sgabios
|
||
|
~/git/qemu-skiboot
|
||
|
~/git/qemu-keycodemapdb
|
||
|
)
|
||
|
|
||
|
# Validate that all the local repos that we currently have patches in are available
|
||
|
# TEMPORARY REQUIREMENT!
|
||
|
for entry in ${REQUIRED_LOCAL_REPO_MAP[@]}; do
|
||
|
if [[ -e $(readlink -f ${entry}) ]]; then
|
||
|
if $(git -C $entry branch| grep -F "$GIT_BRANCH" >/dev/null); then
|
||
|
:
|
||
|
else
|
||
|
echo "Didn't find the $GIT_BRANCH branch in repo at $entry"
|
||
|
exit
|
||
|
fi
|
||
|
else
|
||
|
echo "ERROR! For now, you need to have these local git repos available:"
|
||
|
echo ${REQUIRED_LOCAL_REPO_MAP[@]}
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
./initbundle.sh &> /tmp/git2pkg.log
|
||
|
./bundle2spec.sh &>> /tmp/git2pkg.log
|
||
|
echo "SUCCESS"
|
||
|
tail -9 /tmp/git2pkg.log
|