You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result of diff setup.sh install.fpc-3.0.darwin.sh:
14a15,16> # TODO Prompt the user for the install folder and provide BASE as the default>21,22c23,24< FPC="3.1.1"< LAZ="2.2"---> FPC="3.0"> LAZ="1.5"26c28,35< # Check OS version---> # Add port commands to the path if it's not already there> if [[ ! "$PATH" == *"/opt/local/bin"* ]]; then> PATH=/opt/local/bin:$PATH> fi>> # Begin block comment> # if [ 1 -eq 0 ]; then>37,44d45< elif [ "$OS_VERSION" -eq 12 ]; then< echo "Detected OSX Sierra"< elif [ "$OS_VERSION" -eq 13 ]; then< echo "Detected OSX High Siera"< elif [ "$OS_VERSION" -eq 14 ]; then< echo "Detected OSX Mojave"< elif [ "$OS_VERSION" -eq 15 ]; then< echo "Detected OSX Catalina"66d66< exit 1;72,74c72,91< PACKAGER="none"<< while true; do---> if ! port version &> /dev/null ; then> echo "Setup has detected that macports is not installed"> read -p "Press [ENTER] to install macports"> echo "Please wait for macports to install"> MACPORTS=/tmp/macports.pkg> if [ ! -f "$MACPORTS" ]; then> if [ "$OS_VERSION" -eq 7 ]; then> PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.7-Lion.pkg> elif [ "$OS_VERSION" -eq 8 ]; then> PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.8-MountainLion.pkg> elif [ "$OS_VERSION" -eq 9 ]; then> PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.9-Mavericks.pkg> elif [ "$OS_VERSION" -eq 10 ]; then> PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.10-Yosemite.pkg> elif [ "$OS_VERSION" -eq 11 ]; then> PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.11-ElCapitan.pkg> fi> curl "$PKGURL" -o "$MACPORTS"> fi> open $MACPORTS76,78c93,94< echo "This installer requires either Homebrew or Macports"< echo -n "Which would you prefer [(b)rew or (p)ort]: "< read PACKAGER---> sleep 10s> read -p "After macports is installed press [ENTER] to continue"80,135c96,99<< case $PACKAGER in< [bB][rR][eE][wW]|[bB]) < PACKAGER="brew" < break< ;;< [pP][oO][rR][tT]|[pP]) < PACKAGER="port"< break< ;;< *)< echo "Invalid selection"< echo< continue< ;;< esac< done << if [ $PACKAGER == "port" ] ; then<< # Add port commands to the path if it's not already there< if [[ ! "$PATH" == *"/opt/local/bin"* ]]; then< PATH=/opt/local/bin:$PATH< fi<< if ! which port &> /dev/null ; then< echo "Setup has detected that Macports is not installed"< read -p "Press [ENTER] to install Macports"< echo "Please wait for Macports to install"< MACPORTS=/tmp/macports.pkg< if [ ! -f "$MACPORTS" ]; then< if [ "$OS_VERSION" -eq 7 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.7-Lion.pkg< elif [ "$OS_VERSION" -eq 8 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.8-MountainLion.pkg< elif [ "$OS_VERSION" -eq 9 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.9-Mavericks.pkg< elif [ "$OS_VERSION" -eq 10 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.10-Yosemite.pkg< elif [ "$OS_VERSION" -eq 11 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.3.4-10.11-ElCapitan.pkg< elif [ "$OS_VERSION" -eq 12 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.5.4-10.12-Sierra.pkg< elif [ "$OS_VERSION" -eq 13 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.5.4-10.13-HighSierra.pkg< elif [ "$OS_VERSION" -eq 14 ]; then< PKGURL=https://distfiles.macports.org/MacPorts/MacPorts-2.5.4-10.14-Mojave.pkg< elif [ "$OS_VERSION" -eq 15 ]; then< PKGURL=https://github.com/macports/macports-base/releases/download/v2.6.1/MacPorts-2.6.1-10.15-Catalina.pkg< fi< curl "$PKGURL" -o "$MACPORTS"< fi< open $MACPORTS< echo< sleep 10s< read -p "After Macports is installed press [ENTER] to continue"---> if ! port version &> /dev/null ; then> echo "Setup has detected that macports was not completely installed"> echo "Please wait for macports to install and re-run this script"> echo "done."137,145d100< if ! port version &> /dev/null ; then< echo "Setup has detected that Macports was not completely installed"< echo "Please wait for Macports to install and re-run this script"< echo "done."< echo< exit 1;< fi< else< echo "Found Macports" 146a102,104> else> echo "Found macports" > fi147a106,110> if ! ggdb --version &> /dev/null ; then> echo "Setup has detected that the gnu debugger is not installed"> read -p "Press [ENTER] to install the gnu debugger"> sudo port install gdb> echo149,151c112,113< echo "Setup has detected that the gnu debugger is not installed"< read -p "Press [ENTER] to install the gnu debugger"< sudo port install gdb---> echo "Setup has detected that the gnu debugger did not install"> echo "done."153,160d114< if ! ggdb --version &> /dev/null ; then< echo "Setup has detected that the gnu debugger did not install"< echo "done."< echo< exit 1;< fi< else< echo "Found gnu debugger" 161a116,118> else> echo "Found gnu debugger" > fi162a120,124> if ! 7za --help &> /dev/null ; then> echo "Setup has detected that the 7-zip is not installed"> read -p "Press [ENTER] to install 7-zip"> sudo port install p7zip> echo164,187c126,127< echo "Setup has detected that the 7-zip is not installed"< read -p "Press [ENTER] to install 7-zip"< sudo port install p7zip< echo< if ! 7za --help &> /dev/null ; then< echo "Setup has detected that 7-zip did not install"< echo "done."< echo< exit 1;< fi< else< echo "Found 7-zip" < fi< sleep 2s<< SIGNED="$(codesign -dv /opt/local/bin/ggdb 2>&1)"<< if [[ $SIGNED == *"object is not signed"* ]]< then< echo< echo "Setup has detected that the gnu debugger is not currently code signed." < echo< echo "After install is complete you will be provided instructions on how to sign the" < echo "debugger. This will allow it authorization to attach to programs for debugging."---> echo "Setup has detected that 7-zip did not install"> echo "done."189,243d128< read -p "Press [ENTER] to continue"< fi<< elif [ $PACKAGER == "brew" ] ; then<< # Add brew commands to the path if it's not already there< if [[ ! "$PATH" == *"/usr/local/bin"* ]]; then< PATH=/usr/local/bin:$PATH< fi<< if ! which brew 2> /dev/null; then< echo "Setup has detected that Homebrew is not installed"< read -p "Press [ENTER] to install Homebrew"< ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"< if ! which brew 2> /dev/null; then< echo "Setup has detected that Homebrew was not completely installed"< echo "done."< echo< exit 1;< fi< else< echo "Found Homebrew"< fi<< echo "Checking if Homebrew is up to date"< brew update<< if ! gdb --version &> /dev/null ; then< echo "Setup has detected that the gnu debugger is not installed"< read -p "Press [ENTER] to install the gnu debugger"< brew install gdb< echo< if ! gdb --version &> /dev/null ; then< echo "Setup has detected that the gnu debugger did not install"< echo "done."< echo< exit 1< fi< else< echo "Found gnu debugger" < fi<< if ! 7za --help &> /dev/null ; then< echo "Setup has detected that the 7-zip is not installed"< read -p "Press [ENTER] to install 7-zip"< brew install p7zip< echo< if ! 7za --help &> /dev/null ; then< echo "Setup has detected that 7-zip did not install"< echo "done."< echo< exit 1< fi< else< echo "Found 7-zip" 244a130,132> else> echo "Found 7-zip" > fi246c134< SIGNED="$(codesign -dv /usr/local/bin/gdb 2>&1)"---> SIGNED="$(codesign -dv /opt/local/bin/ggdb 2>&1)"248,257c136,144< if [[ $SIGNED == *"object is not signed"* ]]< then< echo< echo "Setup has detected that the gnu debugger is not currently code signed." < echo< echo "After install is complete you will be provided instructions on how to sign the" < echo "debugger. This will allow it authorization to attach to programs for debugging."< echo< read -p "Press [ENTER] to continue"< fi---> if [[ $SIGNED == *"object is not signed"* ]]> then> echo> echo "Setup has detected that the gnu debugger is not currently code signed." > echo> echo "After install is complete you will be provided instructions on how to sign the" > echo "debugger. This will allow it authorization to attach to programs for debugging."> echo> read -p "Press [ENTER] to continue"274c161< echo "It will install svn trunk builds of:"---> echo "It will install copies of:"290c177< read CHOICE---> read CHOICE301d187< EXPAND=${EXPAND%/}390c276< ORIGIN="/Users/macuser/Development/Cocoa"---> ORIGIN="/Users/macuser/Development/FreePascal"393,394c279< replace "fpc/bin/x86_64-darwin" "$ORIGIN" "$BASE" "*.cfg" < replace "fpc/bin/x86_64-darwin" "$ORIGIN" "$BASE" "fpc.sh" ---> replace "fpc/bin" "$ORIGIN" "$BASE" "*.cfg" 400a286,291> TERMINAL="Free Pascal Terminal.command"> echo "osascript -e 'tell app \"Terminal\"" > "$TERMINAL"> echo " do script \"export PPC_CONFIG_PATH=\\\"$BASE/fpc/bin\\\" && export PATH=\\\"\$PPC_CONFIG_PATH:\$PATH\\\"\"" >> "$TERMINAL"> echo "end tell'" >> "$TERMINAL"> chmod +x "$TERMINAL">412c303< echo "Free Pascal $FPC with Lazarus $LAZ install complete"---> echo "Free Pascal 3.0 with Lazarus install complete"422c313< open "http://www.getlazarus.org/setup/macintosh/"---> open "http://lazarus.codebot.org/darwin/debugger"
The text was updated successfully, but these errors were encountered:
Compare https://github.com/sysrpl/Codebot.Setup/raw/master/macintosh/install.fpc-3.0.darwin.sh with https://www.getlazarus.org/download/?platform=macintosh, the one on this repository is obviously dated, not sure if it's intended?
Result of
diff setup.sh install.fpc-3.0.darwin.sh
:The text was updated successfully, but these errors were encountered: