build: support macOS for "make update" purposes
This commit is contained in:
parent
f59778f5f1
commit
e96cf8a95c
|
@ -277,8 +277,10 @@ confirm|fingerprint|info|print)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
PKGBIN=$(which pkg || true)
|
||||||
|
|
||||||
for WANT in git ${PRODUCT_WANTS}; do
|
for WANT in git ${PRODUCT_WANTS}; do
|
||||||
if ! pkg info ${WANT} > /dev/null; then
|
if ! ${PKGBIN} info ${WANT} > /dev/null; then
|
||||||
echo ">>> Required build package '${WANT}' is not installed." >&2
|
echo ">>> Required build package '${WANT}' is not installed." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -298,7 +300,7 @@ git_fetch()
|
||||||
{
|
{
|
||||||
echo ">>> Fetching ${1}:"
|
echo ">>> Fetching ${1}:"
|
||||||
|
|
||||||
git -C ${1} fetch --all --prune
|
git -C ${1} fetch --tags --prune
|
||||||
}
|
}
|
||||||
|
|
||||||
git_clone()
|
git_clone()
|
||||||
|
|
|
@ -4,6 +4,8 @@ serial_hook()
|
||||||
{
|
{
|
||||||
# We do not require any custom hooks for the A10, but for
|
# We do not require any custom hooks for the A10, but for
|
||||||
# the sake of demonstration, we keep this little stub. :)
|
# the sake of demonstration, we keep this little stub. :)
|
||||||
|
|
||||||
|
: # prevent syntax error
|
||||||
}
|
}
|
||||||
|
|
||||||
# unset this for generic device handling, i.e. no device suffix
|
# unset this for generic device handling, i.e. no device suffix
|
||||||
|
|
Loading…
Reference in New Issue