mac-rom/Make/CreateStdEquAOptions
Elliot Nunn 0ba83392d4 Bring in CubeE sources
Resource forks are included only for .rsrc files. These are DeRezzed into their data fork. 'ckid' resources, from the Projector VCS, are not included.

The Tools directory, containing mostly junk, is also excluded.
2017-09-20 18:04:16 +08:00

66 lines
1.7 KiB
Plaintext

#
# File: CreateStdEquAOptions
#
# Contains: xxx put contents here xxx
#
# Written by: xxx put writers here xxx
#
# Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
#
# Change History (most recent first):
#
# <1> 3/31/93 IH first checked in
#
#
# CreateStdEquAOptions
#
# Usage
# CreateStdEquAOptions {FeatureSet}
#
# Takes the Features and sets the equivalent StandardEqu features
# There are only two features that I care about ROMFastTraps and
# Supports24Bit. To use these features (particularly in Traps.a)
# in StandardEqu.d, the names must be changed to StandardEquSupports24Bit
# and StandardEquROMFastTraps. This script maps the feature
# settings to StandardEqu features.
#
# To Do
# If there start to be more standard equates features, we should
# make this script take a feature list rather than just
#
Unset TempStdEquAOpts
Set TempFeatureCopy "{1}"
If "{TempFeatureCopy}" =~ /Å(ROMFastTraps)¨1=([Â ¶t]+)¨2(Å)/
If "{¨2}" =~ /TRUE/
Set ¨2 1
Else if "{¨2}" =~ /FALSE/
Set ¨2 0
Else
echo "unknown feature define {¨1}={¨2}"
End
If "{TempStdEquAOpts}" =~ /(Å)¨3{¨1}=[Â ¶t]+(Å)¨4/
Set TempStdEquAOpts "{¨3} StandardEqu{¨1}={¨2} {¨4}"
Else
Set TempStdEquAOpts "{TempStdEquAOpts} -d StandardEqu{¨1}={¨2}"
End
End
If "{TempFeatureCopy}" =~ /Å(Supports24Bit)¨1=([Â ¶t]+)¨2(Å)/
If "{¨2}" =~ /TRUE/
Set ¨2 1
Else if "{¨2}" =~ /FALSE/
Set ¨2 0
Else
echo "unknown feature define {¨1}={¨2}"
End
If "{TempStdEquAOpts}" =~ /(Å)¨3{¨1}=[Â ¶t]+(Å)¨4/
Set TempStdEquAOpts "{¨3} StandardEqu{¨1}={¨2} {¨4}"
Else
Set TempStdEquAOpts "{TempStdEquAOpts} -d StandardEqu{¨1}={¨2}"
End
End
Echo {TempStdEquAOpts}