catalyst-auto: automatically calculate REPO_DIR
Rather than hardcode it to a path that works on only a few systems, switch it to the dynamic calculation like we use for GITDIR.
This commit is contained in:
parent
1294da6932
commit
170331ecea
|
@ -1,5 +1,4 @@
|
||||||
BASE_DIR="/release"
|
BASE_DIR="/release"
|
||||||
REPO_DIR="/release/releng"
|
|
||||||
TMP_PATH="/release/tmp/run"
|
TMP_PATH="/release/tmp/run"
|
||||||
BUILD_SRCDIR_BASE=${BASE_DIR}/buildroot/${ARCH}-dev/builds/
|
BUILD_SRCDIR_BASE=${BASE_DIR}/buildroot/${ARCH}-dev/builds/
|
||||||
BUILD_DESTDIR_BASE=${BASE_DIR}/weekly/builds/${ARCH}/
|
BUILD_DESTDIR_BASE=${BASE_DIR}/weekly/builds/${ARCH}/
|
||||||
|
|
|
@ -159,8 +159,9 @@ if [[ -n ${lock_file} ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Probe the default gitdir from this script name.
|
# Probe the default source dir from this script name.
|
||||||
GITDIR=$(dirname "$(dirname "$(realpath "$0")")")
|
REPO_DIR=$(dirname "$(dirname "$(realpath "$0")")")
|
||||||
|
GITDIR=${REPO_DIR}
|
||||||
|
|
||||||
# Set up defaults that config files can override if they want.
|
# Set up defaults that config files can override if they want.
|
||||||
SUBARCH=$(uname -m)
|
SUBARCH=$(uname -m)
|
||||||
|
|
Loading…
Reference in a new issue