From 5d512312d903dd4cdc99b613c9a9c1e4acd7ffd9 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sat, 8 Dec 2007 23:48:06 +0000 Subject: [PATCH] Removed EMPTARGET and ARCH from nightlybuilds, not used with new autoconf. Replace with INSTANCE for logs, build directory for local patches. Use the local patches directly from the source tree instead of all local copy. --- src/scripts/nightly/nightlybuild.sh | 21 ++++++--------------- src/scripts/nightly/report.sh | 2 +- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/scripts/nightly/nightlybuild.sh b/src/scripts/nightly/nightlybuild.sh index 8f5472b7..ab7f1132 100755 --- a/src/scripts/nightly/nightlybuild.sh +++ b/src/scripts/nightly/nightlybuild.sh @@ -46,7 +46,7 @@ esac STAMP="`date +%Y%m%d%H%M%S`" -WORKDIR="${EMPTARGET}.${ARCH}" +WORKDIR="${INSTANCE}" [ -n "${EXTRASUFFIX}" ] && WORKDIR="${WORKDIR}.${EXTRASUFFIX}" LOGFILE="${LOGDIR}/${WORKDIR}.${STAMP}" @@ -136,20 +136,11 @@ done echo "Done (patch All)." echo "" -# Run local patches ${LOCALPATCHDIR}/*.patch -case "${LOCALPATCHDIR}" -in - /*) - ;; - *) - LOCALPATCHDIR="${SCRIPTDIR}/${LOCALPATCHDIR}" - ;; -esac - -if [ -n "${LOCALPATCHDIR}" -a -d "${LOCALPATCHDIR}/." ] +LOCALPATCHDIRECTORY="${BOXDIR}/${WORKDIR}/empserver/src/scripts/nightly/patches/${INSTANCE}" +if [ -n "${LOCALPATCHDIRECTORY}" -a -d "${LOCALPATCHDIRECTORY}/." ] then - echo "Applying system specific patches from ${LOCALPATCHDIR}:" - for i in "${LOCALPATCHDIR}"/*.patch + echo "Applying system specific patches from ${LOCALPATCHDIRECTORY}:" + for i in "${LOCALPATCHDIRECTORY}"/*.patch do [ -r "${i}" ] || continue if ${PATCH:=patch} -Np0 < "${i}" >/dev/null @@ -186,7 +177,7 @@ in # Start the build echo "Building server" -if make "${EMPTARGET}" >/dev/null +if make install >/dev/null then warn "make did not return 0" fi diff --git a/src/scripts/nightly/report.sh b/src/scripts/nightly/report.sh index 0c9475da..622612d3 100755 --- a/src/scripts/nightly/report.sh +++ b/src/scripts/nightly/report.sh @@ -46,7 +46,7 @@ esac cd "${LOGDIR}" || err "Could not cd to ${LOGDIR}" -BUILDTYPE="${EMPTARGET}.${ARCH}" +BUILDTYPE="${INSTANCE}" [ -n "${EXTRASUFFIX}" ] && BUILDTYPE="${BUILDTYPE}.${EXTRASUFFIX}" echo "This was generated using: ${0} ${1}"