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.
slouken@2207
     1
#!/bin/csh
slouken@2207
     2
slouken@2207
     3
###
slouken@2207
     4
## This script installs the stationary
slouken@2207
     5
###
slouken@2207
     6
slouken@2207
     7
sudo -v -p "Please enter the administrator password: "
slouken@2207
     8
slouken@2207
     9
# project templates
slouken@2207
    10
sudo /Developer/Tools/CpMac -r "Project Stationary/SDL Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
slouken@2207
    11
slouken@2207
    12
sudo /Developer/Tools/CpMac -r "Project Stationary/SDL Cocoa Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
slouken@2207
    13
slouken@2207
    14
sudo /Developer/Tools/CpMac -r "Project Stationary/SDL Custom Cocoa Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
slouken@2207
    15
slouken@2207
    16
sudo /Developer/Tools/CpMac -r "Project Stationary/SDL OpenGL Application" "/Developer/ProjectBuilder Extras/Project Templates/Application/"
slouken@2207
    17
slouken@2207
    18
slouken@2207
    19
# target templates
slouken@2207
    20
sudo mkdir -p "/Developer/ProjectBuilder Extras/Target Templates/SDL"
slouken@2207
    21
slouken@2207
    22
sudo /Developer/Tools/CpMac -r "Project Stationary/Application.trgttmpl" "/Developer/ProjectBuilder Extras/Target Templates/SDL"
slouken@2207
    23
slouken@2207
    24
slouken@2207
    25