| | 52 | |
| | 53 | {{{ |
| | 54 | install_version () { |
| | 55 | local version=$1 |
| | 56 | if [[ ! -f X11.bin-${version} ]] ; then |
| | 57 | if [[ ! -f X11.bin-${version}.bz2 ]] ; then |
| | 58 | curl -LO http://static.macosforge.org/xquartz/downloads/X11.bin-${version}.bz2 || curl -LO http://static.macosforge.org/xquartz/downloads/archive/X11.bin-${version}.bz2 || die "Failed to fetch version ${version}" |
| | 59 | fi |
| | 60 | bunzip2 X11.bin-${version}.bz2 || die "Failed to decompress version ${version}" |
| | 61 | fi |
| | 62 | chmod 755 X11.bin-${version} || die "Failed to chmod version ${version}" |
| | 63 | sudo cp X11.bin-${version} /Applications/Utilities/X11.app/Contents/MacOS/X11.bin |
| | 64 | } |
| | 65 | }}} |
| | 66 | |
| | 67 | You can then install the new binary by running (after starting a new Terminal): |
| | 68 | {{{ |
| | 69 | install_version 1.4.2-apple45 |
| | 70 | }}} |