home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-19 | 1.0 KB | 53 lines | [TEXT/MPS ] |
- #
- # File: BuildSharedLibrary
- #
- # Contains: Script to make a shared library
- #
- # Copyright: © 1992-1994 by Apple Computer, Inc., all rights reserved.
- #
- #
-
- if "{TempFolder}" !~ //
- set tempdir "{TempFolder}"
- else if "{CPlusScratch}" !~ //
- set tempdir "{CPlusScratch}"
- else
- set tempdir "`directory`"
- end
- Set BatchFile "{tempdir}SharedLibTemp.bat"
-
- Set deleteBatchFile 1
- Set PPC 0
-
- for currParam in {"Parameters"}
- If "{currParam}" =~ /-preservetemps/
- Set deleteBatchFile 0
- Else If "{currParam}" =~ /-powerpc/
- Set PPC 1
- Else If "{currParam}" =~ /-68k/
- Set PPC 0
- Else If "{prevParam}" =~ /-lib/
- Set OutLibFileName "{currParam}"
- Else If "{prevParam}" =~ /-obj/
- Set BatchFile "{currParam}.bat"
- End
- Set prevParam "{currParam}"
- End
-
- If {PPC}
- Set BuildTool "∂"{SLMTools}∂"LibraryBuilderPPC"
- Else
- Set BuildTool "∂"{SLMTools}∂"LibraryBuilder"
- End
-
- set savedStatus 0
- {BuildTool} -script "{BatchFile}" {"Parameters"} || set savedStatus {status}
- If {savedStatus} == 0
- "{BatchFile}"
- End
-
- If {deleteBatchFile} == 1
- delete -i "{BatchFile}"
- End
-
- exit {savedStatus}