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 "
464 with cmakelists_path.open("r") as cmakelists_old:
480 cmakelists_new.write("# SPDX-License-Identifier: Apache-2.0\n")
515 pattern = r".*_hal_(.*)\..*"
518 + re.sub(pattern, r"\1", filename.name).upper()
528 pattern = r".*_ll_(.*)\..*"
531 + re.sub(pattern, r"\1", filename.name).upper()
574 ("git", "checkout", "-f", "--recurse-submodules", self.version_update),
580 ("git", "rev-parse", "HEAD"), cwd=self.stm32cube_serie_path
581 ).decode("utf-8")
593 self.os_cmd(("git", "reset", "--", "*.patch"), cwd=self.stm32cube_serie_path)
594 self.os_cmd(("git", "reset", "--", "*.log"), cwd=self.stm32cube_serie_path)
596 ("git", "commit", "-am", '"module' + self.version_update + '"'),
642 self.os_cmd(("git", "reset", "--", "*.patch"), cwd=self.zephyr_hal_stm32_path)
643 self.os_cmd(("git", "reset", "--", "*.log"), cwd=self.zephyr_hal_stm32_path)
644 self.os_cmd(("git", "reset", "--", "*.rej"), cwd=self.zephyr_hal_stm32_path)
647 "README file : --> please check that the Patch list is still valid",
681 ("git", "commit", "-as", "-F", commit_file_path),
685 ("git", "rebase", "--whitespace=fix", "HEAD~1"),
699 self.os_cmd(("git", "checkout", "-f", "--recurse-submodules", "HEAD"),
716 ("git", "checkout", "-f", "--recurse-submodules", "HEAD"),
728 ("git", "commit", "--allow-empty", "-m", "'Trigger notification'"),