Template:VARDEFINE GIT: Difference between revisions

From Variscite Wiki
No edit summary
(Add {{#var:NAME}}_REPO as a copy of {{#var:NAME}}_REPO, fixes pages like https://variwiki.com/index.php?title=SWUpdate_Guide&release=mx93-yocto-langdale-6.1.1_1.0.1-v1.3#Create_a_SWUpdate-ready_Image that require it.)
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:


Creates variables prefixed with the NAME variable:
Creates variables prefixed with the NAME variable:
  {{#var:NAME}} = REPO name
   {{#var:NAME}}_GIT
   {{#var:NAME}}_GIT
   {{#var:NAME}}_BRANCH
   {{#var:NAME}}_BRANCH
Line 14: Line 15:
   {{#var:NAME}}_REPO
   {{#var:NAME}}_REPO
   {{#var:NAME}}_HTTP
   {{#var:NAME}}_HTTP
-->
--><includeonly><!--
<includeonly><!--
-->{{#vardefine:{{{NAME}}}|{{{REPO}}}}}<!--
-->{{#vardefine:{{{NAME}}}_GIT|{{{GIT}}}/{{{REPO}}}}}<!--
-->{{#vardefine:{{{NAME}}}_GIT|{{{GIT}}}/{{{REPO}}}}}<!--
-->{{#vardefine:{{{NAME}}}_BRANCH|{{{BRANCH}}}}}<!--
-->{{#vardefine:{{{NAME}}}_BRANCH|{{{BRANCH}}}}}<!--
Line 23: Line 24:
Use GIT URL for HTTP if HTTP is not provided
Use GIT URL for HTTP if HTTP is not provided


-->{{#if: {{{HTTP|}}}
-->{{#ifeq: {{{HTTP|}}} | |
|
{{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}}}
{{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}}}
|
|
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}}
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}}
}}</includeonly>
}}</includeonly>

Latest revision as of 16:21, 16 October 2023