diff --git a/changelog/65073.fixed.md b/changelog/65073.fixed.md new file mode 100644 index 000000000000..2668cfcc554d --- /dev/null +++ b/changelog/65073.fixed.md @@ -0,0 +1 @@ +The macOS installer no longer removes the extras directory diff --git a/pkg/macos/build.sh b/pkg/macos/build.sh index 5cc0d0e5493b..bf00952908ff 100755 --- a/pkg/macos/build.sh +++ b/pkg/macos/build.sh @@ -119,13 +119,34 @@ _usage() { echo "usage: ${0}" echo " [-h|--help] [-v|--version]" echo "" - echo " -h, --help this message" - echo " -v, --version version of Salt display in the package" + echo " -h, --help Display this message" + echo " -v, --version Version of Salt to display in the package" + echo " -p, --python-version Version of python to install using relenv." + echo " The python version is tied to the relenv" + echo " version" + echo " -r, --relenv-version Version of relenv to install" echo "" echo " Build a Salt package:" echo " example: $0 3006.1-1" } +function _parse_yaml { + local prefix=$2 + local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') + sed -ne "s|^\($s\):|\1|" \ + -e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \ + -e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | + awk -F$fs '{ + indent = length($1)/2; + vname[indent] = $2; + for (i in vname) {if (i > indent) {delete vname[i]}} + if (length($3) > 0) { + vn=""; for (i=0; i indent) {delete vname[i]}} + if (length($3) > 0) { + vn=""; for (i=0; i