Welcome to mirror list, hosted at ThFree Co, Russian Federation.

make_utils.py « utils « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 98536879b91ff1d4509fcb60ad6ad17c8ba18bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3
#
# Utility functions for make update and make tests.

import subprocess
import sys

def call(cmd):
    print(" ".join(cmd))

    # Flush to ensure correct order output on Windows.
    sys.stdout.flush()
    sys.stderr.flush()

    retcode = subprocess.call(cmd)
    if retcode != 0:
      sys.exit(retcode)