Update to support osx 11 and update version

This commit is contained in:
William Young 2021-11-15 08:57:44 -06:00
parent f360b8d502
commit 37e2c9c444
1 changed files with 8 additions and 6 deletions

View File

@ -5,8 +5,11 @@
# by Clayton Slaughter and William Young # # by Clayton Slaughter and William Young #
# clayton.thomas.slaughter@ibm.com # # clayton.thomas.slaughter@ibm.com #
# william.young@ibm.com # # william.young@ibm.com #
# Version: 04.01ga10 #
################################################################################ ################################################################################
echo C3270 Installer Script Version: 04.01ga10
# Make sure script is run as root # Make sure script is run as root
if [[ $UID -ne 0 ]]; then if [[ $UID -ne 0 ]]; then
echo "This script must be run as root. Please run:\nsudo $0" echo "This script must be run as root. Please run:\nsudo $0"
@ -17,7 +20,6 @@ fi
macver=$(/usr/bin/sw_vers -productVersion) macver=$(/usr/bin/sw_vers -productVersion)
xcode_fooler=/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress xcode_fooler=/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
# Define the xcode install function # Define the xcode install function
install_xcode () { install_xcode () {
touch $xcode_fooler touch $xcode_fooler
@ -26,7 +28,7 @@ install_xcode () {
softwareupdate -i $install_candidate softwareupdate -i $install_candidate
fi fi
rm $xcode_fooler rm $xcode_fooler
if [[ ${macver:3} -gt 13 ]]; then if [[ ${macver:0:2} -gt 10 || ${macver:3} -gt 13 ]]; then
if [[ ! -f /Library/Developer/CommandLineTools/usr/bin/git ]]; then if [[ ! -f /Library/Developer/CommandLineTools/usr/bin/git ]]; then
echo "Xcode tools could not be installed automatically"; echo "Xcode tools could not be installed automatically";
echo "please run 'xcode-select --install' manually to install the Xcode Command Line Tools, then rerun this script."; echo "please run 'xcode-select --install' manually to install the Xcode Command Line Tools, then rerun this script.";
@ -45,7 +47,7 @@ install_xcode () {
echo "Checking for Xcode..." echo "Checking for Xcode..."
# Get Xcode if needed # Get Xcode if needed
if [[ ${macver:3} -gt 13 ]]; then if [[ ${macver:0:2} -gt 10 || ${macver:3} -gt 13 ]]; then
if [[ ! -f /Library/Developer/CommandLineTools/usr/bin/git ]]; then if [[ ! -f /Library/Developer/CommandLineTools/usr/bin/git ]]; then
install_xcode install_xcode
fi fi
@ -65,8 +67,8 @@ wrkdir=$(mktemp -d)
cd $wrkdir cd $wrkdir
echo "Building in $PWD" echo "Building in $PWD"
# Grab the source code # Grab the source code
curl http://x3270.bgp.nu/download/03.06/suite3270-3.6ga8-src.tgz | tar -x curl http://x3270.bgp.nu/download/04.01/suite3270-4.1ga10-src.tgz | tar -x
cd suite3270-3.6 cd suite3270-4.1
# Build and install # Build and install
./configure --enable-c3270 ./configure --enable-c3270