home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-26 | 821 b | 26 lines | [TEXT/MPS ] |
- ## SetCompiler
- ##
- ## MPW script to set the CIncludesCompiler environment variable to support multi-compiler development
-
- If ("{1}" == 'AppleCFront') || ("{1}" == 'SymantecC++') || ("{1}" == 'MetrowerksC++')
- Set CIncludesCompiler "{1}"
- Else
- Set Compiler "`Begin; GetListItem -d "Apple CFront" "Symantec C++" "Metrowerks C++" -m "Select C++ compiler:" -s; Set ListStatus {Status}; End`" ≥≥ Dev:Null
- If ({ListStatus} == 0)
- # a target system was selected
- If ({Compiler} == 'Apple CFront')
- Set CIncludesCompiler 'AppleCFront'
- Else
- If ({Compiler} == 'Symantec C++')
- Set CIncludesCompiler 'SymantecC++'
- Else
- If ({Compiler} == 'Metrowerks C++')
- Set CIncludesCompiler 'MetrowerksC++'
- End # If
- End # If
- End # If
- Unset ListStatus
- End # If
- Unset Compiler
- End # If
- # end of SetCompiler