Esempio n. 1
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args()
    _file = arguments.get("file", None)
    _version = arguments.get("previous", None)

    try:
        # starts the build process with the configuration file
        # that was provided to the configuration script and the
        # runs the validation process for the git repository, this
        # operation should also generate the log and version files
        atm.build(_file)
        version = atm.git_v(_version)
    except:
        sys.exit(0)

    # prints a log message about the two versions that are going
    # to be compared to verify if there's a change
    print("Comparing '%s' against '%s' ..." % (version, _version))

    # verifies if the version is the same as the one defined
    # as the base for comparison in case it's returns in error
    # otherwise returns the resulting (and value) of the various
    # calls (should be success by default)
    if version == _version: sys.exit(1)
    else: sys.exit(0)
Esempio n. 2
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args()
    _file = arguments.get("file", None)
    _version = arguments.get("previous", None)

    try:
        # starts the build process with the configuration file
        # that was provided to the configuration script and the
        # runs the validation process for the git repository, this
        # operation should also generate the log and version files
        atm.build(_file)
        version = atm.git_v(_version)
    except:
        sys.exit(0)

    # prints a log message about the two versions that are going
    # to be compared to verify if there's a change
    print("Comparing '%s' against '%s' ..." % (version, _version))

    # verifies if the version is the same as the one defined
    # as the base for comparison in case it's returns in error
    # otherwise returns the resulting (and value) of the various
    # calls (should be success by default)
    if version == _version: sys.exit(1)
    else: sys.exit(0)
Esempio n. 3
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args(names = ())
    file = arguments.get("file", None)

    # starts the build process with the parameters
    # retrieved from the current environment
    build(
        file = file
    )
Esempio n. 4
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args(names = ())
    file = arguments.get("file", None)

    # starts the build process with the parameters
    # retrieved from the current environment
    build(
        file = file
    )
Esempio n. 5
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args(names=("no-modules", "arch=", "mode="))
    file = arguments.get("file", None)
    build_m = not arguments.get("no-modules", False)
    arch = arguments.get("arch", "win32")
    mode = arguments.get("mode", "Release")

    # starts the build process with the parameters
    # retrieved from the current environment
    build(file=file, build_m=build_m, arch=arch, mode=mode)
Esempio n. 6
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args(names=("no-modules", "cflags=", "cross="))
    file = arguments.get("file", None)
    build_m = not arguments.get("no-modules", False)
    cflags = arguments.get("cflags", None)
    cross = arguments.get("cross", None)

    # starts the build process with the parameters
    # retrieved from the current environment
    build(file=file, build_m=build_m, cflags=cflags, cross=cross)
Esempio n. 7
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args(names = ("no-modules", "arch=", "mode="))
    file = arguments.get("file", None)
    build_m = not arguments.get("no-modules", False)
    arch = arguments.get("arch", "win32")
    mode = arguments.get("mode", "Release")

    # starts the build process with the parameters
    # retrieved from the current environment
    build(
        file = file,
        build_m = build_m,
        arch = arch,
        mode = mode
    )
Esempio n. 8
0
def run():
    # parses the various arguments provided by the
    # command line and retrieves it defaulting to
    # pre-defined values in case they do not exist
    arguments = atm.parse_args(names = ("no-modules", "cflags=", "cross="))
    file = arguments.get("file", None)
    build_m = not arguments.get("no-modules", False)
    cflags = arguments.get("cflags", None)
    cross = arguments.get("cross", None)

    # starts the build process with the parameters
    # retrieved from the current environment
    build(
        file = file,
        build_m = build_m,
        cflags = cflags,
        cross = cross
    )