Merge pull request #3970 from chewitt/options

options: support per-buildsystem options
This commit is contained in:
MilhouseVH 2019-12-15 02:00:16 +00:00 committed by GitHub
commit b28a93e0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

3
.gitignore vendored
View File

@ -12,6 +12,9 @@
# mkpkg temp # mkpkg temp
mkpkg-temp mkpkg-temp
# options
/.libreelec
# private working directory # private working directory
/.work/ /.work/

View File

@ -86,7 +86,12 @@ VERBOSE="${VERBOSE:-yes}"
# directory. # directory.
CCACHE_CACHE_SIZE="10G" CCACHE_CACHE_SIZE="10G"
# read options from $HOME if available # read local persistent options from $ROOT if available
if [ -f "${ROOT}/.libreelec/options" ]; then
. "${ROOT}/.libreelec/options"
fi
# read global persistent options from $HOME if available
if [ -f "${HOME}/.libreelec/options" ]; then if [ -f "${HOME}/.libreelec/options" ]; then
. "${HOME}/.libreelec/options" . "${HOME}/.libreelec/options"
fi fi