Skip to content

Commit b797165

Browse files
Merge pull request #3465 from practicalswift/use-tr-instead-of-python
Use tr to lower case string (instead of invoking python).
2 parents 60b5564 + fd47aef commit b797165

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/build-script-impl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,14 @@ function quoted_print() {
276276
python -c 'import pipes; import sys; print(" ".join(pipes.quote(arg) for arg in sys.argv[1:]))' "$@"
277277
}
278278

279-
280279
function toupper() {
281280
echo "$@" | tr '[:lower:]' '[:upper:]'
282281
}
283282

283+
function tolower() {
284+
echo "$@" | tr '[:upper:]' '[:lower:]'
285+
}
286+
284287
function true_false() {
285288
case "$1" in
286289
false | FALSE | 0 | "")
@@ -406,7 +409,7 @@ function set_build_options_for_host() {
406409
--foundation "$(build_directory ${host} foundation)"
407410
--build-dir "$(build_directory ${host} playgroundlogger)"
408411
--swift-build-dir "$(build_directory ${host} swift)"
409-
--$(python -c 'import sys; print sys.argv[1].lower()' ${PLAYGROUNDLOGGER_BUILD_TYPE})
412+
--$(tolower "${PLAYGROUNDLOGGER_BUILD_TYPE}")
410413
)
411414
;;
412415
linux-armv6)

0 commit comments

Comments
 (0)