unaply MB-0004

This commit is contained in:
Jaume Bellet 2023-10-26 11:15:23 +02:00
parent 73fc76fe20
commit 9544563308
2 changed files with 0 additions and 61 deletions

View File

@ -22,7 +22,6 @@ Blender Convenience Targets
* developer: Enable faster builds, error checking and tests, recommended for developers.
* ninja: Use ninja build tool for faster builds.
* ccache: Use ccache for faster rebuilds.
* mblender: Applies mechanical Blender patches
Note: when passing in multiple targets their order is not important.
So for a fast build you can for e.g. run 'make lite ccache ninja'.
@ -576,9 +575,6 @@ format: .FORCE
@$(PYTHON) tools/utils_maintenance/autopep8_format_paths.py --autopep8-command="$(AUTOPEP8)" $(PATHS)
mblender: .FORCE
@$(PYTHON) ./build_files/utils/apply_mblender_patches.py
# -----------------------------------------------------------------------------
# Documentation
#

View File

@ -1,57 +0,0 @@
#!/usr/bin/env python3
#
# Mechanical Blender
"""
"make mblender" for applying mblender patches on current source.
"""
import argparse
import sys
import os
import make_utils
from make_utils import call
MB_0001 = "https://projects.blender.org/JaumeBellet/mblender/raw/branch/mb-0001-operator-repeat/diff/MB-0001-operator-repeat.diff"
MB_0005 = "https://projects.blender.org/JaumeBellet/mblender/raw/branch/mb-0005-splash-changes/diff/MB-0005-splash-changes.diff"
MB_0006 = "https://projects.blender.org/JaumeBellet/mblender/raw/branch/mb-0006-allow-no-modal-transform/diff/MB-0006-allow-no-modal-transform.diff"
MB_0007 = "https://projects.blender.org/JaumeBellet/mblender/raw/branch/mb-0007-transform-flags/diff/MB-0007-transform-flags.diff"
def parse_arguments() -> argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument("--git-command", default="git")
parser.add_argument("--wget-command", default="wget")
return parser.parse_args()
args = parse_arguments()
git_command = args.git_command
wget_command = args.wget_command
tmp_file = "/tmp/mblender.patch"
if make_utils.command_missing(git_command):
sys.stderr.write("git not found, can't checkout test files\n")
sys.exit(1)
if make_utils.command_missing(wget_command):
sys.stderr.write("wget not found, used for downloading patches\n")
sys.exit(1)
if __name__ == "__main__":
call([wget_command, MB_0005, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0007, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0001, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0006, "-O", tmp_file])
call([git_command, "apply", tmp_file])