mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-24 02:13:02 -07:00
readability and removed duplication
This commit is contained in:
parent
3d2dedd007
commit
5126696eb0
1 changed files with 39 additions and 16 deletions
|
|
@ -1,22 +1,45 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This script is to be used by the ci environment from the project root directory, do not use it from somewhere else.
|
# This script is to be used by the CI environment from the project root directory, do not use it from somewhere else.
|
||||||
|
|
||||||
# Compiles cockatrice inside of a ci environment
|
# Compiles Cockatrice inside a CI environment
|
||||||
# --install runs make install
|
#
|
||||||
# --package [<package type>] runs make package, optionally force the type
|
# Supported arguments:
|
||||||
# --suffix <suffix> renames package with this suffix, requires arg
|
# --install Runs cmake install
|
||||||
# --server compiles servatrice
|
# --package [<package type>] Runs cmake package (optionally: define the type)
|
||||||
# --test runs tests
|
# --suffix <suffix> Renames package with provided suffix
|
||||||
# --debug or --release sets the build type ie CMAKE_BUILD_TYPE
|
# --server Compiles Servatrice
|
||||||
# --ccache [<size>] uses ccache and shows stats, optionally provide size
|
# --test Runs tests
|
||||||
# --evict-ccache <age> runs ccache eviction based on given age after build
|
# --debug / --release Sets the build type (CMAKE_BUILD_TYPE)
|
||||||
# --dir <dir> sets the name of the build dir, default is "build"
|
# --ccache [<size>] Uses ccache and shows stats, optionally provide size
|
||||||
# --cmake-generator <generator> sets CMAKE_GENERATOR as used by cmake
|
# --evict-ccache <age> Runs ccache eviction based on given age after build
|
||||||
# --target-macos-version <version> sets the min os version - only used for macOS builds
|
# --dir <dir> Sets the name of the build dir, default is "build"
|
||||||
# uses env: BUILDTYPE MAKE_INSTALL MAKE_PACKAGE PACKAGE_TYPE PACKAGE_SUFFIX MAKE_SERVER MAKE_NO_CLIENT MAKE_TEST USE_CCACHE CCACHE_SIZE CCACHE_EVICTION_AGE BUILD_DIR CMAKE_GENERATOR TARGET_MACOS_VERSION
|
# --cmake-generator <generator> Sets the CMake generator (CMAKE_GENERATOR)
|
||||||
# (correspond to args: --debug/--release --install --package <package type> --suffix <suffix> --server --test --ccache <ccache_size> --dir <dir>)
|
# --target-macos-version <version> Sets the min OS version - only used for macOS builds
|
||||||
# exitcode: 1 for failure, 3 for invalid arguments
|
#
|
||||||
|
# Used environment variables:
|
||||||
|
# BUILDTYPE
|
||||||
|
# MAKE_INSTALL
|
||||||
|
# MAKE_PACKAGE
|
||||||
|
# PACKAGE_TYPE
|
||||||
|
# PACKAGE_SUFFIX
|
||||||
|
# MAKE_SERVER
|
||||||
|
# MAKE_NO_CLIENT
|
||||||
|
# MAKE_TEST
|
||||||
|
# USE_CCACHE
|
||||||
|
# CCACHE_SIZE
|
||||||
|
# CCACHE_EVICTION_AGE
|
||||||
|
# BUILD_DIR
|
||||||
|
# CMAKE_GENERATOR
|
||||||
|
# TARGET_MACOS_VERSION
|
||||||
|
#
|
||||||
|
# Exitcodes:
|
||||||
|
# 1 --> Failure
|
||||||
|
# 3 --> Invalid argument(s)
|
||||||
|
|
||||||
|
#TODO order above comment, check & add
|
||||||
|
# there are also missing ones like "--no-client" and "--vcpkg"
|
||||||
|
# arguments and env variables are doubled and are not used uniformly between Linux and macOS/Windows builds which adds complexity
|
||||||
|
|
||||||
# Read arguments
|
# Read arguments
|
||||||
while [[ $# != 0 ]]; do
|
while [[ $# != 0 ]]; do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue