File tree Expand file tree Collapse file tree
build/project-template/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22source ./.build_env_vars.sh
33
4- MODULES_DIR=$SRCROOT /internal/Swift-Modules
4+ MODULES_DIR=" $SRCROOT /internal/Swift-Modules"
55
66function DELETE_SWIFT_MODULES_DIR() {
7- rm -rf $MODULES_DIR
7+ rm -rf " $MODULES_DIR "
88}
99
1010function GEN_MODULEMAP() {
1111 SWIFT_HEADER_DIR=$PER_VARIANT_OBJECT_FILE_DIR
1212
1313 DELETE_SWIFT_MODULES_DIR
1414 if [ -d " $SWIFT_HEADER_DIR " ]; then
15- HEADERS_PATHS=$( find $SWIFT_HEADER_DIR -name * -Swift.h 2> /dev/null)
15+ HEADERS_PATHS=$( find " $SWIFT_HEADER_DIR " -name * -Swift.h 2> /dev/null)
1616 if [ -n " $HEADERS_PATHS " ]; then
1717 # Workaround for ARCH being set to `undefined_arch` here. Get the newest -Swift.h
1818 # if more than one is found. It should be the one for the current architecture.
19- HEADER_PATH=$( ls -t $HEADERS_PATHS | head -n 1)
20- mkdir -p $MODULES_DIR
19+ HEADER_PATH=$( ls -t " $HEADERS_PATHS " | head -n 1)
20+ mkdir -p " $MODULES_DIR "
2121 CONTENT=" module nsswiftsupport { \n header \" $HEADER_PATH \" \n export * \n}"
2222 printf " $CONTENT " > " $MODULES_DIR /module.modulemap"
2323 else
You can’t perform that action at this time.
0 commit comments