Lines 519-524
Link Here
|
519 |
# Using the name of a branch here is incorrect. It is |
519 |
# Using the name of a branch here is incorrect. It is |
520 |
# possible to do GH_TAGNAME= GIT_HASH to do a snapshot. |
520 |
# possible to do GH_TAGNAME= GIT_HASH to do a snapshot. |
521 |
# default: ${DISTVERSION} |
521 |
# default: ${DISTVERSION} |
|
|
522 |
# GH_TUPLE - above shortened to account:project:tagname[:group] |
522 |
# |
523 |
# |
523 |
.if defined(USE_GITHUB) |
524 |
.if defined(USE_GITHUB) |
524 |
. if defined(GH_TAGNAME) && ${GH_TAGNAME} == master |
525 |
. if defined(GH_TAGNAME) && ${GH_TAGNAME} == master |
Lines 526-531
Link Here
|
526 |
Must use a tag or commit hash so the upstream does \ |
527 |
Must use a tag or commit hash so the upstream does \ |
527 |
not "reroll" as soon as the branch is updated |
528 |
not "reroll" as soon as the branch is updated |
528 |
. endif |
529 |
. endif |
|
|
530 |
. if defined(GH_TUPLE) |
531 |
GH_ACCOUNT+= ${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\1\4@} |
532 |
GH_PROJECT+= ${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\2\4@} |
533 |
GH_TAGNAME+= ${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\3\4@} |
534 |
|
535 |
.for _TUPLE_TMP in ${GH_TUPLE} |
536 |
|
537 |
_GIT_REV_GET+= GIT_REV_${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\4@:C@:@@:C@-@_@g}=`git ls-remote https://github.com/${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\1@}/${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\2@}.git | ${GREP} HEAD | ${SED} -E "s/^(.......).*/\1/g"` && |
538 |
_GIT_REV_ECHO+= echo "GH_TUPLE+= ${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\1:\2:\${GIT_REV_${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\4@:C@:@@:C@-@_@g}}\4@}" && |
539 |
_GIT_REV_CHANGE+=if [ ${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\3@} != "$$GIT_REV_${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\4@:C@:@@:C@-@_@g}" ]; then echo "GH_TUPLE+= ${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\1:\2:\${GIT_REV_${_TUPLE_TMP:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?).*@\4@:C@:@@:C@-@_@g}}\4@}"; fi && |
540 |
|
541 |
.endfor |
542 |
|
543 |
gh-get-latest-revisions: |
544 |
@${ECHO} "--begin latest revisions--" && \ |
545 |
${_GIT_REV_GET} \ |
546 |
${_GIT_REV_ECHO} \ |
547 |
${ECHO} "--end latest revisions--" |
548 |
|
549 |
gh-get-changed-revisions: |
550 |
@${ECHO} "--begin changed revisions--" && \ |
551 |
${_GIT_REV_GET} \ |
552 |
${_GIT_REV_CHANGE} \ |
553 |
${ECHO} "--end changed revisions--" |
554 |
. endif |
529 |
# We are cheating and using backend URLS for Github here. See ports/194898 |
555 |
# We are cheating and using backend URLS for Github here. See ports/194898 |
530 |
# comment #15 for explanation as to why and how to deal with it if it breaks. |
556 |
# comment #15 for explanation as to why and how to deal with it if it breaks. |
531 |
MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR% |
557 |
MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR% |