build: simplify git handling a bit, including terminology
This commit is contained in:
parent
8b4efcc4d6
commit
eedae02356
|
@ -246,7 +246,7 @@ if [ "${SELF}" != print -a "${SELF}" != info -a "${SELF}" != update ]; then
|
|||
echo ">>> Running build step: ${SELF}"
|
||||
fi
|
||||
|
||||
git_checkout()
|
||||
git_reset()
|
||||
{
|
||||
git -C ${1} clean -xdqf .
|
||||
REPO_TAG=${2}
|
||||
|
@ -259,11 +259,8 @@ git_checkout()
|
|||
git_update()
|
||||
{
|
||||
git -C ${1} fetch --all --prune
|
||||
|
||||
if [ -n "${2}" ]; then
|
||||
git -C ${1} checkout ${2}
|
||||
git -C ${1} pull
|
||||
fi
|
||||
git -C ${1} checkout ${2}
|
||||
git -C ${1} pull
|
||||
}
|
||||
|
||||
git_describe()
|
||||
|
|
|
@ -49,7 +49,7 @@ for CORE in ${CORE_LIST}; do
|
|||
CORE_ARGS=
|
||||
|
||||
setup_copy ${STAGEDIR} ${COREDIR}
|
||||
git_checkout ${STAGEDIR}${COREDIR} ${CORE}
|
||||
git_reset ${STAGEDIR}${COREDIR} ${CORE}
|
||||
git_describe ${STAGEDIR}${COREDIR} ${CORE}
|
||||
|
||||
if [ "${REPO_REFTYPE}" = tag -o -z "${REPO_BRANCH}" ]; then
|
||||
|
|
|
@ -47,7 +47,7 @@ done
|
|||
|
||||
git_branch ${PORTSDIR} ${PORTSBRANCH} PORTSBRANCH
|
||||
git_update ${PORTSREFDIR} ${PORTSREFBRANCH}
|
||||
git_checkout ${PORTSDIR} HEAD
|
||||
git_reset ${PORTSDIR} HEAD
|
||||
|
||||
UNUSED=1
|
||||
USED=1
|
||||
|
|
Loading…
Reference in New Issue