<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-infrastructure.
</pre>
<p><a href="https://github.com/macports/macports-infrastructure/commit/d99bc837df38d5ab15be019672c259e64260c17b">https://github.com/macports/macports-infrastructure/commit/d99bc837df38d5ab15be019672c259e64260c17b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d99bc837df38d5ab15be019672c259e64260c17b
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Nov 14 22:04:23 2016 -0600
<span style='display:block; white-space:pre;color:#404040;'> mprsyncup: Keep track of whether RBASE or PORTS changed
</span>---
jobs/mprsyncup | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/jobs/mprsyncup b/jobs/mprsyncup
</span><span style='display:block; white-space:pre;color:#808080;'>index 2dceb74..740720c 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/jobs/mprsyncup
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/jobs/mprsyncup
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -105,8 +105,12 @@ fi
</span> if [ -f ${RBASE}/.svn/lock ]; then
${SVN} cleanup ${RBASE}
fi
<span style='display:block; white-space:pre;background:#e0ffe0;'>+RBASE_CHANGED=1
</span> if [ -d ${RBASE}/.svn ]; then
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ RBASE_OLD_REV="$(${SVN} info ${RBASE} | ${SED} -n 's/^Last Changed Rev: //p')"
</span> ${SVN} -q switch ${RELEASE_URL} ${RBASE}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ RBASE_NEW_REV="$(${SVN} info ${RBASE} | ${SED} -n 's/^Last Changed Rev: //p')"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [ "${RBASE_OLD_REV}" = "${RBASE_NEW_REV}" ] && RBASE_CHANGED=0
</span> else
${SVN} -q checkout ${RELEASE_URL} ${RBASE}
fi
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -121,14 +125,19 @@ ${RSYNC} -aIC --delete ${RBASE}/ ${RSYNCROOT}/release/base
</span> if [ -f ${PORTS}/.svn/lock ]; then
${SVN} cleanup ${PORTS}
fi
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PORTS_CHANGED=1
</span> if [ -d ${PORTS}/.svn ]; then
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ PORTS_OLD_REV="$(${SVN} info ${PORTS} | ${SED} -n 's/^Last Changed Rev: //p')"
</span> ${SVN} -q update ${PORTS}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ PORTS_NEW_REV="$(${SVN} info ${PORTS} | ${SED} -n 's/^Last Changed Rev: //p')"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [ "${PORTS_OLD_REV}" = "${PORTS_NEW_REV}" ] && PORTS_CHANGED=0
</span> else
${SVN} -q checkout ${PORTSURL} ${PORTS}
fi
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# build MP in a private location for indexing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if [[ ! -x ${PREFIX}/bin/port || ! -r ${RBASE}/config/macports_version || "$(<${RBASE}/config/macports_version)" != "$(${PREFIX}/bin/port -q version)" ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if [ ${RBASE_CHANGED} -eq 1 ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PORTS_CHANGED=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # build MP in a private location for indexing
</span> pushd ${RBASE} >> /dev/null
./configure \
--prefix=${PREFIX} \
</pre><pre style='margin:0'>
</pre>