fix build non-svn checkouts post r336593

The change made in r336593 assumes that the build is happening in a
svn checkout resulting in misleading debug output. Check that we're
actually working in an svn checkout before proceeding to call svn.
This commit is contained in:
Matt Macy 2018-07-22 22:57:52 +00:00
parent 8407faa1b3
commit 87faf66318

View File

@ -15,8 +15,13 @@ SVN_CMD= ${_P}/${_S}
. endfor
. endfor
.endif
.if exists($SRCTOP/.svn)
EC2_SVNBRANCH!= ${SVN_CMD} info --show-item relative-url ${WORLDDIR} | sed -e 's/\^\///'
EC2_SVNREV!= ${SVN_CMD} info --show-item last-changed-revision ${WORLDDIR}
.else
EC2_SVNBRANCH= unknown
EC2_SVNREV= unknown
.endif
.if ${BRANCH} == "CURRENT" || ${BRANCH} == "STABLE" || ${BRANCH} == "PRERELEASE"
AMINAMESUFFIX!= date +-%Y-%m-%d