Xcode/stationary.csh
author Michael Sartain <mikesart@valvesoftware.com>
Thu, 11 Oct 2012 09:41:43 -0700
changeset 6570 45855398762c
parent 2207 d63e9f5944ae
permissions -rwxr-xr-x
Add GLX_X_VISUAL_TYPE_EXT so created window will use DirectColor if available (instead of TrueColor).
Our new X11 window was being created with the TrueColor attribute, and trying to set the gamma
on that would fail. This change checks for the visual_info extension, and uses that to ask for
DirectColor if available.
     1 #!/bin/csh
     2 
     3 ###
     4 ## This script installs the stationary
     5 ###
     6 
     7 sudo -v -p "Please enter the administrator password: "
     8 
     9 # project templates
    10 sudo /Developer/Tools/CpMac -r "Project Stationary/SDL Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
    11 
    12 sudo /Developer/Tools/CpMac -r "Project Stationary/SDL Cocoa Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
    13 
    14 sudo /Developer/Tools/CpMac -r "Project Stationary/SDL Custom Cocoa Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
    15 
    16 sudo /Developer/Tools/CpMac -r "Project Stationary/SDL OpenGL Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
    17 
    18 
    19 # target templates
    20 sudo mkdir -p "/Developer/ProjectBuilder Extras/Target Templates/SDL"
    21 
    22 sudo /Developer/Tools/CpMac -r "Project Stationary/Application.trgttmpl" "/Developer/ProjectBuilder Extras/Target Templates/SDL"
    23 
    24 
    25