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.)
 
(7 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}}}}}<!--
{{#vardefine:{{{NAME}}}_COMMIT|{{{COMMIT}}}}}
-->{{#vardefine:{{{NAME}}}_COMMIT|{{{COMMIT}}}}}<!--
{{#vardefine:{{{NAME}}}_REPO|{{{REPO}}}}}
-->{{#vardefine:{{{NAME}}}_REPO|{{{REPO}}}}}<!--
<!-- Use GIT URL for HTTP if HTTP is not provided -->
 
{{#if: {{{HTTP|}}}
Use GIT URL for HTTP if HTTP is not provided
 
-->{{#ifeq: {{{HTTP|}}} | |
{{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}}}
|
|
{{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}}
|
}}</includeonly>
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}
}}
</includeonly>

Latest revision as of 16:21, 16 October 2023