17 lines
565 B
Bash
Executable File
17 lines
565 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$BUILD_DIR" == *"IBDesignables"* ]] || [[ "$BUILD_DIR" == *"Previews"* ]] ; then
|
|
echo "do nothing when building for IBDesignables/SwiftUI Previews builds";
|
|
exit 0
|
|
fi
|
|
|
|
set -e
|
|
|
|
if [[ -z ${SKIP_OBJCLEAN} || ${SKIP_OBJCLEAN} != 1 ]]; then
|
|
if [[ -d "${LOCAL_APPS_DIR}/Objective-Clean.app" ]]; then
|
|
"${LOCAL_APPS_DIR}"/Objective-Clean.app/Contents/Resources/ObjClean.app/Contents/MacOS/ObjClean "${PROJECT_DIR}"?!vendor
|
|
else
|
|
echo "warning: You have to install and set up Objective-Clean to use its features!"
|
|
fi
|
|
fi
|