Changes between Version 37 and Version 38 of Releases


Ignore:
Timestamp:
07/28/09 09:50:23 (4 years ago)
Author:
jeremyhu@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Releases

    v37 v38  
    4848}}} 
    4949 
     50This task can be simplified using the following bash function.  Place the following snippet of code in your ~/.bashrc or ~/.profile: 
    5051 
     52 
     53{{{ 
     54install_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 
     67You can then install the new binary by running (after starting a new Terminal): 
     68{{{ 
     69install_version 1.4.2-apple45 
     70}}}