mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
Correctly reference SRCTOP, avoid multiple invocations of svn
Reported by: sjg
This commit is contained in:
parent
87faf66318
commit
16bb9a49ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336622
@ -15,9 +15,15 @@ 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}
|
||||
.if exists(${SRCTOP}/.svn)
|
||||
. if empty(${EC2_SVNBRANCH})
|
||||
EC2_SVNBRANCH!= ${SVN_CMD} info --show-item relative-url ${WORLDDIR} | sed -e 's/\^\///'
|
||||
. export EC2_SVNBRANCH
|
||||
. endif
|
||||
. if empty(${EC2_SVNREV})
|
||||
EC2_SVNREV!= ${SVN_CMD} info --show-item last-changed-revision ${WORLDDIR}
|
||||
. export EC2_SVNREV
|
||||
. endif
|
||||
.else
|
||||
EC2_SVNBRANCH= unknown
|
||||
EC2_SVNREV= unknown
|
||||
|
Loading…
Reference in New Issue
Block a user