mac-rom/Make/CreateStdEquAOptions

66 lines
1.7 KiB
Plaintext
Raw Normal View History

#
# File: CreateStdEquAOptions
#
# Contains: xxx put contents here xxx
#
# Written by: xxx put writers here xxx
#
# Copyright: <09> 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}" =~ /<2F>(ROMFastTraps)<29>1=([<5B> <20>t]+)<29>2(<28>)/
If "{<7B>2}" =~ /TRUE/
Set <20>2 1
Else if "{<7B>2}" =~ /FALSE/
Set <20>2 0
Else
echo "unknown feature define {<7B>1}={<7B>2}"
End
If "{TempStdEquAOpts}" =~ /(<28>)<29>3{<7B>1}=[<5B> <20>t]+(<28>)<29>4/
Set TempStdEquAOpts "{<7B>3} StandardEqu{<7B>1}={<7B>2} {<7B>4}"
Else
Set TempStdEquAOpts "{TempStdEquAOpts} -d StandardEqu{<7B>1}={<7B>2}"
End
End
If "{TempFeatureCopy}" =~ /<2F>(Supports24Bit)<29>1=([<5B> <20>t]+)<29>2(<28>)/
If "{<7B>2}" =~ /TRUE/
Set <20>2 1
Else if "{<7B>2}" =~ /FALSE/
Set <20>2 0
Else
echo "unknown feature define {<7B>1}={<7B>2}"
End
If "{TempStdEquAOpts}" =~ /(<28>)<29>3{<7B>1}=[<5B> <20>t]+(<28>)<29>4/
Set TempStdEquAOpts "{<7B>3} StandardEqu{<7B>1}={<7B>2} {<7B>4}"
Else
Set TempStdEquAOpts "{TempStdEquAOpts} -d StandardEqu{<7B>1}={<7B>2}"
End
End
Echo {TempStdEquAOpts}