summaryrefslogtreecommitdiff
path: root/swift/config/xcode-slice2swift.sh
diff options
context:
space:
mode:
Diffstat (limited to 'swift/config/xcode-slice2swift.sh')
-rwxr-xr-xswift/config/xcode-slice2swift.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/swift/config/xcode-slice2swift.sh b/swift/config/xcode-slice2swift.sh
index 38e5528aeba..bcf72aa1e92 100755
--- a/swift/config/xcode-slice2swift.sh
+++ b/swift/config/xcode-slice2swift.sh
@@ -2,11 +2,11 @@
TOP_LEVEL=$(git rev-parse --show-toplevel)
if [ -z "$1" ]; then
- ${TOP_LEVEL}/cpp/bin/slice2swift -I${TOP_LEVEL}/Slice -I${INPUT_FILE_DIR} --output-dir $DERIVED_FILE_DIR $INPUT_FILE_PATH
+ ${TOP_LEVEL}/cpp/bin/slice2swift -I"${TOP_LEVEL}/Slice" -I"${INPUT_FILE_DIR}" --output-dir "$DERIVED_FILE_DIR" "$INPUT_FILE_PATH"
else
BASENAME=$(basename -- "$INPUT_FILE_PATH")
BASENAME="${BASENAME%.*}"
- mkdir -p $DERIVED_FILE_DIR/$1
- ${TOP_LEVEL}/cpp/bin/slice2swift -I${TOP_LEVEL}/Slice -I${INPUT_FILE_DIR} --output-dir $DERIVED_FILE_DIR/$1 $INPUT_FILE_PATH
- mv $DERIVED_FILE_DIR/$1/$BASENAME.swift $DERIVED_FILE_DIR/$1_$BASENAME.swift
+ mkdir -p "$DERIVED_FILE_DIR/$1"
+ ${TOP_LEVEL}/cpp/bin/slice2swift -I"${TOP_LEVEL}/Slice" -I"${INPUT_FILE_DIR}" --output-dir "$DERIVED_FILE_DIR/$1" "$INPUT_FILE_PATH"
+ mv "$DERIVED_FILE_DIR/$1/$BASENAME.swift" "$DERIVED_FILE_DIR/$1_$BASENAME.swift"
fi