Lines Matching +full:- +full:r
3 SPDX-License-Identifier: Apache-2.0
41 v = re.sub("v", r"", version)
164 re.sub("_template", r"", str(hal_conf_template_fullpath))
173 ("git", "ls-remote", "--heads", "origin", "master"),
175 ).decode("utf-8")
193 self.os_cmd(("git", "clean", "-fdx"), cwd=self.stm32cube_serie_path)
197 self.os_cmd(("git", "submodule", "update", "--init"),
200 # "Using --recurse-submodules will update the content of all active
203 # checkout will fail unless -f is used."
204 # https://git-scm.com/docs/git-checkout
206 ("git", "checkout", "-f", "--recurse-submodules", branch),
212 # So to get them too, --recursive or --recurse-submodules is needed
214 ("git", "clone", "--recursive", repo_name),
225 ("git", "tag", "-l"), cwd=self.stm32cube_serie_path
227 self.version_tag = [x.decode("utf-8") for x in self.version_tag]
244 with open(str(self.readme_file_path), "r") as f:
249 pattern = r".*version v?(\d+\.\d+\.?\d*).*$"
251 previous_version = re.sub(pattern, r"\1", line).rstrip("\n")
339 ("git", "checkout", "-f", "--recurse-submodules", self.current_version),
353 ("git", "add", "-A", "stm32cube/" + self.stm32_seriexx + "/*"),
357 ("git", "commit", "-am", '"module' + self.current_version + '"'),
362 ("git", "rebase", "--whitespace=fix", "HEAD~1"),
370 # clean-up the module
380 self.os_cmd(("git", "commit", "-am", '"module"'), cwd=self.stm32cube_temp)
384 ("git", "rebase", "--whitespace=fix", "HEAD~1"),
399 ("git diff --ignore-space-at-eol HEAD~1 --output=" + self.module_patch),
416 with readme_path.open(mode="r") as readme_prev:
444 "--> please check that the following list "
474 with cmakelists_path.open("r") as cmakelists_old:
490 cmakelists_new.write("# SPDX-License-Identifier: Apache-2.0\n")
525 pattern = r".*_hal_(.*)\..*"
528 + re.sub(pattern, r"\1", filename.name).upper()
538 pattern = r".*_ll_(.*)\..*"
541 + re.sub(pattern, r"\1", filename.name).upper()
584 ("git", "checkout", "-f", "--recurse-submodules", self.version_update),
590 ("git", "rev-parse", "HEAD"), cwd=self.stm32cube_serie_path
591 ).decode("utf-8")
603 self.os_cmd(("git", "reset", "--", "*.patch"), cwd=self.stm32cube_serie_path)
604 self.os_cmd(("git", "reset", "--", "*.log"), cwd=self.stm32cube_serie_path)
606 ("git", "commit", "-am", '"module' + self.version_update + '"'),
653 self.os_cmd(("git", "reset", "--", "*.patch"), cwd=self.zephyr_hal_stm32_path)
654 self.os_cmd(("git", "reset", "--", "*.log"), cwd=self.zephyr_hal_stm32_path)
655 self.os_cmd(("git", "reset", "--", "*.rej"), cwd=self.zephyr_hal_stm32_path)
658 "README file : --> please check that the Patch list is still valid",
692 ("git", "commit", "-as", "-F", commit_file_path),
696 ("git", "rebase", "--whitespace=fix", "HEAD~1"),
710 self.os_cmd(("git", "checkout", "-f", "--recurse-submodules", "HEAD"),
727 ("git", "checkout", "-f", "--recurse-submodules", "HEAD"),
739 ("git", "commit", "--allow-empty", "-m", "'Trigger notification'"),