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.) |
||
(3 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 15: | Line 16: | ||
{{#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 22: | Line 24: | ||
Use GIT URL for HTTP if HTTP is not provided | Use GIT URL for HTTP if HTTP is not provided | ||
-->{{# | -->{{#ifeq: {{{HTTP|}}} | | | ||
{{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}}} | |||
| | | | ||
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}} | |||
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}} | |||
}}</includeonly> | }}</includeonly> |