Add a few vars to the start of the script to reduce the hardcoded paths.

svn path=/trunk/; revision=812
This commit is contained in:
Jorge Manuel B. S. Vicetto 2011-09-15 23:17:45 +00:00
parent 605f44da96
commit 0ad5787ec8
2 changed files with 23 additions and 14 deletions

View file

@ -1,7 +1,11 @@
# This is the config file for the catalyst-auto script. It should be pretty
# self-explanatory.
SPECS_DIR=/release/svn-releng/trunk/releases/weekly/specs/amd64
BASE_DIR="/release"
SVN_DIR="${BASE_DIR}/svn-releng"
ARCH="amd64"
SPECS_DIR=${SVN_DIR}/trunk/releases/weekly/specs/${ARCH}
SETS="multilib hardened_multilib hardened_nomultilib"
@ -12,16 +16,16 @@ SET_hardened_multilib_SPECS="hardened/stage1.spec hardened/stage2.spec hardened/
SET_hardened_nomultilib_SPECS="hardened/stage1-nomultilib.spec hardened/stage2-nomultilib.spec hardened/stage3-nomultilib.spec"
KCONFIG_DIR=/release/svn-releng/trunk/releases/weekly/kconfig/amd64
KCONFIG_DIR=${SVN_DIR}/trunk/releases/weekly/kconfig/${ARCH}
EMAIL_TO=releng@gentoo.org,gentoo-releng-autobuilds@lists.gentoo.org
EMAIL_FROM=catalyst@poseidon.amd64.dev.gentoo.org
EMAIL_SUBJECT_PREPEND="[amd64-auto]"
EMAIL_SUBJECT_PREPEND="[${ARCH}-auto]"
CATALYST_CONFIG=/etc/catalyst/amd64-auto.conf
CATALYST_CONFIG=/etc/catalyst/${ARCH}-auto.conf
BUILD_SRCDIR_BASE=/release/buildroot/amd64-dev/builds/
BUILD_DESTDIR_BASE=/home/buildsync/builds/amd64/
BUILD_SRCDIR_BASE=${BASE_DIR}/buildroot/${ARCH}-dev/builds/
BUILD_DESTDIR_BASE=/home/buildsync/builds/${ARCH}/
give_latest_from_dates() {
sed 's,-20,~20,g' | \
@ -34,7 +38,7 @@ give_latest_from_dates() {
}
pre_build() {
svn up /release/svn-releng/
svn up ${SVN_DIR}
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
cd $d