File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ function usage() {
32
32
echo " --preset-file"
33
33
echo " load build-script presets from the specified file"
34
34
echo " "
35
+ echo " --preset-prefix"
36
+ echo " Customize the preset invoked by prepending a prefix"
37
+ echo " "
35
38
}
36
39
37
40
RESULT_DIR=$PWD
@@ -42,6 +45,7 @@ DISTCC_FLAG=
42
45
DRY_RUN=
43
46
BUNDLE_PREFIX=
44
47
PRESET_FILE_FLAGS=
48
+ PRESET_PREFIX=
45
49
case $( uname -s) in
46
50
Darwin)
47
51
SWIFT_PACKAGE=buildbot_osx_package,no_test
@@ -77,6 +81,10 @@ while [ $# -ne 0 ]; do
77
81
--preset-file)
78
82
shift
79
83
PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} --preset-file=$1 "
84
+ ;;
85
+ --preset-prefix)
86
+ shift
87
+ PRESET_PREFIX=" $1 "
80
88
;;
81
89
-h|--help)
82
90
usage
@@ -125,7 +133,7 @@ DRY_RUN="${DRY_RUN}"
125
133
DISTCC_FLAG=" ${DISTCC_FLAG} "
126
134
PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} "
127
135
128
- ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} ${PRESET_FILE_FLAGS} --preset=" ${SWIFT_PACKAGE} " \
136
+ ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} ${PRESET_FILE_FLAGS} --preset=" ${PRESET_PREFIX}${ SWIFT_PACKAGE} " \
129
137
install_destdir=" ${SWIFT_INSTALL_DIR} " \
130
138
installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
131
139
install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
You can’t perform that action at this time.
0 commit comments