Permalink
Browse files

build system: Xcode: fail with a good error message if upx doesn't exist

  • Loading branch information...
rianhunter committed Sep 3, 2014
1 parent b7bc804 commit caefc6beb2d98d2ff77804dc923fbdc191d01d62
Showing with 1 addition and 1 deletion.
  1. +1 −1 Xcode/Safe.xcodeproj/project.pbxproj
@@ -522,7 +522,7 @@
);
runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "# save unstripped version of binary\ncp \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\" ~/$(basename ${EXECUTABLE_PATH})-Unstripped\n\nstrip -u -r \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\"\n\nUPX=$(which upx)\nif [ -z \"$UPX\" ] && [ -x /usr/local/bin/upx ]; then\n UPX=/usr/local/bin/upx\nfi\n\nexec \"$UPX\" --best --ultra-brute \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\"";
shellScript = "# save unstripped version of binary\ncp \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\" ~/$(basename ${EXECUTABLE_PATH})-Unstripped\n\nstrip -u -r \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\"\n\nUPX=$(which upx)\nif [ -z \"$UPX\" ] && [ -x /usr/local/bin/upx ]; then\n UPX=/usr/local/bin/upx\nfi\n\nif ! [ -x \"$UPX\" ]; then\n echo \"Need UPX binary!\" >&2\n exit 127\nfi\n\nexec \"$UPX\" --best --ultra-brute \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\"";
};
/* End PBXShellScriptBuildPhase section */

0 comments on commit caefc6b

Please sign in to comment.