-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update script to allow single platform builds #76 #79
Conversation
@@ -31,14 +31,16 @@ alert="\033[0m${red}\033[1m" | |||
alertdim="\033[0m${red}\033[2m" | |||
|
|||
# Set trap to help debug any build errors | |||
trap 'echo -e "${alert}** ERROR with Build - Check /tmp/curl*.log${alertdim}"; tail -30 /tmp/curl*.log' INT TERM EXIT | |||
trap 'echo -e "${alert}** ERROR with Build on line $LINENO ($0) - Check /tmp/curl*.log${alertdim}"; tail -30 /tmp/curl*.log' ERR TERM EXIT | |||
trap 'exit 1' INT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated traps to catch user cancellation and to provide more details during build errors (line number and file).
case "$choice" in | ||
n|N ) echo "Exiting"; exit 1 ;; | ||
* ) echo "Continuing..."; echo "" ;; | ||
esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added build details (what is being built) and a user confirmation prompt before proceeding. This will help with those accidental builds that step on your working build, or if you didn't specify the right options/versions. Additionally, added a build -y
option to auto-yes this prompt:
./build.sh -y
Successful test build: https://github.com/jasonacox/Build-OpenSSL-cURL/actions/runs/12873252243/job/35890386014 |
Updated build script to allow building for single platform targets: macOS, iOS or tvOS. Specify with
-p macOS
. Default build is for "all" as it has been. Added examples apps for tvOS and macOS.References
Closes #77
Closes #76