diff --git a/Makefile b/Makefile
index 7bd1bc3..ed3dff5 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,9 @@ ASMFLAGS+=
# Add any arguments you want passed to the linker to this variable:
LDFLAGS+=
+# Uncomment the following line if you want to build against the GNO libraries
+# export ORCA=$(ORCA_BINDIR)/gno
+
# If you want to copy one or more files or directories to the target disk
# image, add the root directory to this variable. Any directories under
# the source directory which don't exist in the target disk image will be
diff --git a/make/system601.2mg b/make/system601.2mg
index 3bec0b0..394d3a2 100644
Binary files a/make/system601.2mg and b/make/system601.2mg differ
diff --git a/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata b/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata
index bd2e661..4afe45d 100755
--- a/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata
+++ b/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata
@@ -28,6 +28,17 @@
version
1.0
+ Xcode.FileDataTypeDetector.ORCAM.Assembly
+
+ detectedTypeIdentifier
+ com.rand-family.xcode.orcam
+ id
+ Xcode.FileDataTypeDetector.ORCAM.Assembly
+ matchesExtension
+ s
+ point
+ Xcode.FileDataTypeDetector
+
Xcode.SourceCodeLanguage.ORCAM-Assembly
commentSyntax
@@ -66,11 +77,88 @@
id
Xcode.SourceCodeLanguage.ORCAM-Assembly
languageName
- ORCAM-Assembly
+ ORCA Assembly
languageSpecification
xcode.lang.asm.orcam
name
- ORCAM Assembly
+ ORCA Assembly
+ point
+ Xcode.SourceCodeLanguage
+ supportsIndentation
+ true
+ version
+ 1.0
+
+ Xcode.FileDataType.ORCAM.Rez
+
+ id
+ Xcode.FileDataType.ORCAM.Rez
+ localizedDescription
+ ORCA Resource
+ name
+ File type for ORCA resources
+ point
+ Xcode.FileDataType
+ typeConformedTo
+
+
+ typeIdentifier
+ com.apple.rez-source
+
+
+ typeIdentifier
+ com.rand-family.xcode.orcarez
+ version
+ 1.0
+
+ Xcode.FileDataTypeDetector.ORCAM.Rez
+
+ detectedTypeIdentifier
+ com.rand-family.xcode.orcarez
+ id
+ Xcode.FileDataTypeDetector.ORCAM.Rez
+ matchesExtension
+ rez
+ point
+ Xcode.FileDataTypeDetector
+
+ Xcode.SourceCodeLanguage.ORCA-Rez
+
+ commentSyntax
+
+
+ prefix
+ //
+
+
+ prefix
+ /*
+ suffix
+ */
+
+
+ conformsTo
+
+
+ identifier
+ Xcode.SourceCodeLanguage.Generic
+
+
+ fileDataType
+
+
+ identifier
+ com.rand-family.xcode.orcarez
+
+
+ id
+ Xcode.SourceCodeLanguage.ORCA-Rez
+ languageName
+ ORCA Resources
+ languageSpecification
+ xcode.lang.orca.rez
+ name
+ ORCA Resources
point
Xcode.SourceCodeLanguage
supportsIndentation
diff --git a/pkg/Specifications/OrcaM.xclangspec b/pkg/Specifications/OrcaM.xclangspec
index b9ccb98..4e10974 100644
--- a/pkg/Specifications/OrcaM.xclangspec
+++ b/pkg/Specifications/OrcaM.xclangspec
@@ -291,7 +291,7 @@
);
};
},
-
+
{
Identifier = "xcode.lang.asm.orcam.datablock";
Syntax = {
diff --git a/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/TemplateInfo.plist b/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/TemplateInfo.plist
deleted file mode 100644
index e47722c..0000000
--- a/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/TemplateInfo.plist
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
-
-
- Nodes
-
- main.c
- Makefile
- make/config.txt
- make/createDiskImage
- make/head.mk
- make/launchEmulator
- make/orca-asm
- make/orca-cc
- make/orca-macgen
- make/orca-rez
- make/system601.2mg
- make/tail.mk
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Definitions
-
- main.c
-
- Path
- main.c
-
- make/config.txt
-
- Group
- make
- Path
- make/config.txt
-
- make/createDiskImage
-
- Group
- make
- Path
- make/createDiskImage
-
- make/head.mk
-
- Group
- make
- Path
- make/head.mk
-
- make/launchEmulator
-
- Group
- make
- Path
- make/launchEmulator
-
- make/orca-asm
-
- Group
- make
- Path
- make/orca-asm
-
- make/orca-cc
-
- Group
- make
- Path
- make/orca-cc
-
- make/orca-macgen
-
- Group
- make
- Path
- make/orca-macgen
-
- make/orca-rez
-
- Group
- make
- Path
- make/orca-rez
-
- make/system601.2mg
-
- Group
- make
- Path
- make/system601.2mg
-
- make/tail.mk
-
- Group
- make
- Path
- make/tail.mk
-
- Makefile
-
- Path
- Makefile
-
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Group
-
- Supporting Files
-
- Path
- ___PACKAGENAME___.xcscheme
-
-
- Kind
- Xcode.Xcode3.ProjectTemplateUnitKind
- Identifier
- com.halcyontouch.apple2gsCCDA
- Ancestors
-
- com.apple.dt.unit.externalBuildSystem
-
- Concrete
-
- Description
- This template creates an Apple IIgs C code project to build a classic desk accessory. The project starts with a single C file which you can modify. You can also add more assembly or C files as you may like.
- Options
-
- Targets
-
-
- TargetType
- Legacy
- TargetIdentifier
- com.apple.dt.cocoaLegacyTarget
- BuildToolPath
- ___VARIABLE_buildToolPath___
- BuildToolArgsString
- -C ___PACKAGENAME___ $(ACTION)
- SharedSettings
-
- OTHER_CFLAGS
-
- OTHER_LDFLAGS
-
-
- Configurations
-
- Debug
-
- DEBUGGING_SYMBOLS
- YES
- GCC_GENERATE_DEBUGGING_SYMBOLS
- YES
- GCC_OPTIMIZATION_LEVEL
- 0
-
- Release
-
-
-
-
- ProductType
- com.apple.product-type.tool
- TargetIdentifier
- com.apple.dt.commandLineToolTarget
- Name
- doNotBuild
- SharedSettings
-
- PRODUCT_NAME
- doNotBuild
- GCC_PREPROCESSOR_DEFINITIONS
- inline(X,Y)=""
- pascal=""
- HEADER_SEARCH_PATHS
- $GOLDEN_GATE/Libraries/ORCACDefs
- ~/Library/GoldenGate/Libraries/ORCACDefs
- /Library/GoldenGate/Libraries/ORCACDefs
- ~/GoldenGate/Libraries/ORCACDefs
-
- BuildPhases
-
-
- Class
- Sources
-
-
- Class
- Frameworks
-
-
- Class
- CopyFiles
- DstPath
- /usr/share/man/man1/
- DstSubfolderSpec
- 0
- RunOnlyForDeploymentPostprocessing
- YES
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme b/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme
deleted file mode 100644
index 61815a2..0000000
--- a/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/main.c b/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/main.c
deleted file mode 100644
index 27df588..0000000
--- a/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/main.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-
-
-#pragma cda "___PACKAGENAME___" start shutdown
-
-
-#include
-
-
-char str[256];
-
-void start(void)
-{
- printf("Hello, world!\n");
- printf("\n\n Press ENTER to quit...");
-
- fgets(str, sizeof(str), stdin);
-}
-
-
-void shutdown(void)
-{
-}
-
diff --git a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/TemplateInfo.plist b/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/TemplateInfo.plist
deleted file mode 100644
index 4d1815e..0000000
--- a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/TemplateInfo.plist
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
-
- Nodes
-
- main.c
- main.h
- main.rez
- Makefile
- make/config.txt
- make/createDiskImage
- make/head.mk
- make/launchEmulator
- make/orca-asm
- make/orca-cc
- make/orca-macgen
- make/orca-rez
- make/system601.2mg
- make/tail.mk
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Definitions
-
- main.c
-
- Path
- main.c
-
- main.h
-
- Path
- main.h
-
- main.rez
-
- Path
- main.rez
-
- make/config.txt
-
- Group
- make
- Path
- make/config.txt
-
- make/createDiskImage
-
- Group
- make
- Path
- make/createDiskImage
-
- make/head.mk
-
- Group
- make
- Path
- make/head.mk
-
- make/launchEmulator
-
- Group
- make
- Path
- make/launchEmulator
-
- make/orca-asm
-
- Group
- make
- Path
- make/orca-asm
-
- make/orca-cc
-
- Group
- make
- Path
- make/orca-cc
-
- make/orca-macgen
-
- Group
- make
- Path
- make/orca-macgen
-
- make/orca-rez
-
- Group
- make
- Path
- make/orca-rez
-
- make/system601.2mg
-
- Group
- make
- Path
- make/system601.2mg
-
- make/tail.mk
-
- Group
- make
- Path
- make/tail.mk
-
- Makefile
-
- Path
- Makefile
-
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Group
-
- Supporting Files
-
- Path
- ___PACKAGENAME___.xcscheme
-
-
- Kind
- Xcode.Xcode3.ProjectTemplateUnitKind
- Identifier
- com.halcyontouch.apple2gsCCDev
- Ancestors
-
- com.apple.dt.unit.externalBuildSystem
-
- Concrete
-
- Description
- This template creates an Apple IIgs C code project to build a control panel. The project starts with a single C file which you can modify. You can also add more assembly or C files as you may like.
- Options
-
- Targets
-
-
- TargetType
- Legacy
- TargetIdentifier
- com.apple.dt.cocoaLegacyTarget
- BuildToolPath
- ___VARIABLE_buildToolPath___
- BuildToolArgsString
- -C ___PACKAGENAME___ $(ACTION)
- SharedSettings
-
- OTHER_CFLAGS
-
- OTHER_LDFLAGS
-
-
- Configurations
-
- Debug
-
- DEBUGGING_SYMBOLS
- YES
- GCC_GENERATE_DEBUGGING_SYMBOLS
- YES
- GCC_OPTIMIZATION_LEVEL
- 0
-
- Release
-
-
-
-
- ProductType
- com.apple.product-type.tool
- TargetIdentifier
- com.apple.dt.commandLineToolTarget
- Name
- doNotBuild
- SharedSettings
-
- PRODUCT_NAME
- doNotBuild
- GCC_PREPROCESSOR_DEFINITIONS
- inline(X,Y)=""
- pascal=""
- HEADER_SEARCH_PATHS
- $GOLDEN_GATE/Libraries/ORCACDefs
- ~/Library/GoldenGate/Libraries/ORCACDefs
- /Library/GoldenGate/Libraries/ORCACDefs
- ~/GoldenGate/Libraries/ORCACDefs
-
- BuildPhases
-
-
- Class
- Sources
-
-
- Class
- Frameworks
-
-
- Class
- CopyFiles
- DstPath
- /usr/share/man/man1/
- DstSubfolderSpec
- 0
- RunOnlyForDeploymentPostprocessing
- YES
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/___PACKAGENAME___.xcscheme b/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/___PACKAGENAME___.xcscheme
deleted file mode 100644
index 61815a2..0000000
--- a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/___PACKAGENAME___.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.c b/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.c
deleted file mode 100644
index 139d50a..0000000
--- a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.c
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-
-#pragma cdev entry
-
-#include
-#include
-#include
-#include
-
-#include "main.h"
-
-
-/* CDev Message Numbers
- * (Why aren't these in an include file somewhere?)
- * Check out FTN.C7.XXXX in the file type tech notes for
- * more information about CDevs.
- */
-#define machineCDev 1
-#define bootCDev 2
-#define reservedCDev 3
-#define initCDev 4
-#define closeCDev 5
-#define eventsCDev 6
-#define createCDev 7
-#define aboutCDev 8
-#define rectCDev 9
-#define hitCDev 10
-#define runCDev 11
-#define editCDev 12
-
-
-
-long doMachine(void)
-{
- /* Return non-zero if you cannot be opened on this machine
- * (and maybe display an alert explaining why).
- */
- return 1;
-}
-
-
-void doBoot(int *flag)
-{
- /* Set bit 0 to 1 in flag if you want to draw at X through
- * the icon at boot time to indicate that this CDev will not
- * load.
- */
-
-#if 0
- /* Enable this line to set bit 0 to 1. */
- *flag |= 1;
-#endif
-}
-
-
-void doInit(GrafPortPtr windowPtr)
-{
-}
-
-
-void doClose(GrafPortPtr windowPtr)
-{
-}
-
-
-void doEvents(GrafPortPtr windowPtr, EventRecord *eventPtr)
-{
-}
-
-
-void doAbout(GrafPortPtr windowPtr)
-{
- NewControl2(windowPtr, resourceToResource, HELP_RESOURCE);
-}
-
-
-void doCreate(GrafPortPtr windowPtr)
-{
- NewControl2(windowPtr, resourceToResource, MAIN_RESOURCE);
-}
-
-
-void doRect(Rect *rectPtr)
-{
-}
-
-
-void doHit(Handle controlHandle, long controlID)
-{
-}
-
-
-void doRun(GrafPortPtr windowPtr)
-{
-}
-
-
-void doEdit(GrafPortPtr windowPtr, int action)
-{
- switch (action) {
- case undoAction:
- break;
-
- case cutAction:
- break;
-
- case copyAction:
- break;
-
- case pasteAction:
- break;
-
- case clearAction:
- break;
- }
-}
-
-
-long entry(long data2, long data1, int message)
-
-{
- GrafPortPtr windowPtr = (void *) data1;
-
- switch (message) {
- case machineCDev:
- return doMachine();
-
- case bootCDev:
- doBoot((int *)data1);
- break;
-
- case initCDev:
- doInit((GrafPortPtr)data1);
- break;
-
- case closeCDev:
- doClose((GrafPortPtr)data1);
- break;
-
- case eventsCDev:
- doEvents((GrafPortPtr)data2, (EventRecord *)data1);
- break;
-
- case createCDev:
- doCreate((GrafPortPtr)data1);
- break;
-
- case aboutCDev:
- doAbout((GrafPortPtr)data1);
- break;
-
- case rectCDev:
- doRect((Rect *)data1);
- break;
-
- case hitCDev:
- doHit((Handle)data1, data2);
- break;
-
- case runCDev:
- doRun((GrafPortPtr)data1);
- break;
-
- case editCDev:
- doEdit((GrafPortPtr)data2, (int)(data1 & 0xffff));
- break;
- }
- return 1;
-}
diff --git a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.h b/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.h
deleted file mode 100644
index 0ba70f5..0000000
--- a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-#ifndef _____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____
-#define _____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____
-
-
-#define CDEV_RESOURCE 0x1
-#define MAIN_RESOURCE 0x100
-#define HELP_RESOURCE 0x101
-
-
-#endif /* defined(_____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____) */
diff --git a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.rez b/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.rez
deleted file mode 100644
index 3bf09c5..0000000
--- a/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/main.rez
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * ___FILENAME___
- * ___PROJECTNAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * ___COPYRIGHT___
- */
-
-
-#include "types.rez"
-
-#include "___FILEBASENAME___.h"
-
-
-/* This is the required resource to tell the control panel about the CDev */
-resource rCDEVFlags (CDEV_RESOURCE) {
- 0x00C0, /* This sets the wantCreate and wantAbout bits */
- /* Set more bits if you want other messages */
- 1,
- 1,
- 1,
- 0,
- {0, 0, 110, 200},
- "___PROJECTNAME___",
- "___FULLUSERNAME___",
- "1.0"
-};
-
-
-/* Code resource; the executable part of the CDev */
-read rCDevCode (CDEV_RESOURCE,convert) "___PROJECTNAME___.bin";
-
-
-/* This is the icon displayed by the control panel */
-resource rIcon (CDEV_RESOURCE) {
- 0x8000, /* color icon */
- 20, /* height in pixels */
- 28, /* width in pixels */
- $"FFFFFFFFFFFFFFFFFFFFFFFFFFFF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FF888888888888888888888888FF"
- $"FFFFFFFFFFFFFFFFFFFFFFFFFFFF",
-
- $"0000000000000000000000000000"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"00FFFFFFFFFFFFFFFFFFFFFFFF00"
- $"0000000000000000000000000000"
-};
-
-
-/* The following resources define the various controls in the main display */
-resource rControlList (MAIN_RESOURCE) {
- {
- MAIN_RESOURCE,
- };
-};
-
-resource rControlTemplate (MAIN_RESOURCE) {
- 0x00000001, /* control id */
- {38,5,49,205}, /* control rectangle */
- statTextControl {{ /* control type */
- 0x0000, /* flags */
- 0x1002, /* more flags */
- 0, /* ref con */
- MAIN_RESOURCE, /* text reference */
- 13 /* text length */
- }};
-};
-
-
-resource rTextForLETextBox2 (MAIN_RESOURCE) {
- "Hello, world!"
-};
-
-/* The following resources define the controls for the help screen */
-resource rControlList (HELP_RESOURCE) {
- {
- HELP_RESOURCE,
- };
-};
-
-resource rControlTemplate (HELP_RESOURCE) {
- 0x00000002, /* control id */
- {38,5,49,205}, /* control rectangle */
- statTextControl {{ /* control type */
- 0x0000, /* flags */
- 0x1002, /* more flags */
- 0, /* ref con */
- HELP_RESOURCE, /* text reference */
- 19 /* text length */
- }};
-};
-
-resource rTextForLETextBox2 (HELP_RESOURCE) {
- "Put help info here."
-};
-
diff --git a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/TemplateInfo.plist b/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/TemplateInfo.plist
deleted file mode 100644
index bc5009c..0000000
--- a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/TemplateInfo.plist
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
-
- Nodes
-
- main.c
- main.h
- main.rez
- Makefile
- make/config.txt
- make/createDiskImage
- make/head.mk
- make/launchEmulator
- make/orca-asm
- make/orca-cc
- make/orca-macgen
- make/orca-rez
- make/system601.2mg
- make/tail.mk
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Definitions
-
- main.c
-
- Path
- main.c
-
- main.h
-
- Path
- main.h
-
- main.rez
-
- Path
- main.rez
-
- make/config.txt
-
- Group
- make
- Path
- make/config.txt
-
- make/createDiskImage
-
- Group
- make
- Path
- make/createDiskImage
-
- make/head.mk
-
- Group
- make
- Path
- make/head.mk
-
- make/launchEmulator
-
- Group
- make
- Path
- make/launchEmulator
-
- make/orca-asm
-
- Group
- make
- Path
- make/orca-asm
-
- make/orca-cc
-
- Group
- make
- Path
- make/orca-cc
-
- make/orca-macgen
-
- Group
- make
- Path
- make/orca-macgen
-
- make/orca-rez
-
- Group
- make
- Path
- make/orca-rez
-
- make/system601.2mg
-
- Group
- make
- Path
- make/system601.2mg
-
- make/tail.mk
-
- Group
- make
- Path
- make/tail.mk
-
- Makefile
-
- Path
- Makefile
-
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Group
-
- Supporting Files
-
- Path
- ___PACKAGENAME___.xcscheme
-
-
- Kind
- Xcode.Xcode3.ProjectTemplateUnitKind
- Identifier
- com.halcyontouch.apple2gsCDesktopApp
- Ancestors
-
- com.apple.dt.unit.externalBuildSystem
-
- Concrete
-
- Description
- This template creates an Apple IIgs C code project to build desktop application. The project starts with a single C file which you can modify. You can also add more assembly or C files as you may like.
- Options
-
- Targets
-
-
- TargetType
- Legacy
- TargetIdentifier
- com.apple.dt.cocoaLegacyTarget
- BuildToolPath
- ___VARIABLE_buildToolPath___
- BuildToolArgsString
- -C ___PACKAGENAME___ $(ACTION)
- SharedSettings
-
- OTHER_CFLAGS
-
- OTHER_LDFLAGS
-
-
- Configurations
-
- Debug
-
- DEBUGGING_SYMBOLS
- YES
- GCC_GENERATE_DEBUGGING_SYMBOLS
- YES
- GCC_OPTIMIZATION_LEVEL
- 0
-
- Release
-
-
-
-
- ProductType
- com.apple.product-type.tool
- TargetIdentifier
- com.apple.dt.commandLineToolTarget
- Name
- doNotBuild
- SharedSettings
-
- PRODUCT_NAME
- doNotBuild
- GCC_PREPROCESSOR_DEFINITIONS
- inline(X,Y)=""
- pascal=""
- HEADER_SEARCH_PATHS
- $GOLDEN_GATE/Libraries/ORCACDefs
- ~/Library/GoldenGate/Libraries/ORCACDefs
- /Library/GoldenGate/Libraries/ORCACDefs
- ~/GoldenGate/Libraries/ORCACDefs
-
- BuildPhases
-
-
- Class
- Sources
-
-
- Class
- Frameworks
-
-
- Class
- CopyFiles
- DstPath
- /usr/share/man/man1/
- DstSubfolderSpec
- 0
- RunOnlyForDeploymentPostprocessing
- YES
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/___PACKAGENAME___.xcscheme b/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/___PACKAGENAME___.xcscheme
deleted file mode 100644
index 61815a2..0000000
--- a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/___PACKAGENAME___.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.c b/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.c
deleted file mode 100644
index 2c8685e..0000000
--- a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.c
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "___FILEBASENAME___.h"
-
-
-BOOLEAN done;
-EventRecord myEvent;
-
-
-void DoAbout(void)
-{
- AlertWindow(awCString + awResource, NULL, aboutAlertString);
-}
-
-
-GrafPortPtr NewDocument(void)
-{
- return(NewWindow2("\pMyWindow", 0, NULL, NULL, 0x02, windowRes, rWindParam1));
-}
-
-
-void CloseDocument(GrafPortPtr wPtr)
-{
- if (wPtr != NULL) {
- CloseWindow(wPtr);
- }
-}
-
-
-void HandleMenu(void)
-{
- int menuNum;
- int menuItemNum;
-
- menuNum = myEvent.wmTaskData >> 16;
- menuItemNum = myEvent.wmTaskData;
-
- switch (menuItemNum) {
- case appleAbout:
- DoAbout();
- break;
- case fileNew:
- NewDocument();
- break;
- case fileOpen:
- NewDocument();
- break;
- case fileClose:
- CloseDocument(FrontWindow());
- break;
- case fileQuit:
- done = TRUE;
- break;
- case editUndo:
- break;
- case editCut:
- break;
- case editCopy:
- break;
- case editPaste:
- break;
- case editClear:
- break;
- }
- HiliteMenu(FALSE, menuNum);
-}
-
-
-void InitMenus(void)
-{
- int height;
- MenuBarRecHndl menuBarHand;
-
- menuBarHand = NewMenuBar2(refIsResource, menuBar, NULL);
- SetSysBar(menuBarHand);
- SetMenuBar(NULL);
- FixAppleMenu(appleMenu);
- height = FixMenuBar();
- DrawMenuBar();
-}
-
-
-int main(void)
-{
- int event;
-
- startdesk(640);
- InitMenus();
- InitCursor();
-
- done = FALSE;
- myEvent.wmTaskMask = 0x001F7FFF;
- while (!done) {
- event = TaskMaster(everyEvent, &myEvent);
- switch (event) {
- case wInSpecial:
- case wInMenuBar:
- HandleMenu();
- break;
- case wInGoAway:
- CloseDocument((GrafPortPtr)myEvent.wmTaskData);
- break;
- }
- }
- enddesk();
-}
-
diff --git a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.h b/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.h
deleted file mode 100644
index a7b42f9..0000000
--- a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-#ifndef _____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____
-#define _____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____
-
-
-#define menuBar 1
-
-#define appleMenu 3
-#define fileMenu 4
-#define editMenu 5
-
-#define editUndo 250
-#define editCut 251
-#define editCopy 252
-#define editPaste 253
-#define editClear 254
-
-#define fileNew 401
-#define fileOpen 402
-#define fileClose 255
-#define fileQuit 256
-
-#define appleAbout 301
-
-#define aboutAlertString 1
-
-#define windowRes 1001
-
-
-#endif /* defined(_____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____) */
diff --git a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.rez b/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.rez
deleted file mode 100644
index 46be5fd..0000000
--- a/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/main.rez
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
- * ___FILENAME___
- * ___PROJECTNAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * ___COPYRIGHT___
- */
-
-
-#include "types.rez"
-#include "___FILEBASENAME___.h"
-
-
-resource rMenuBar (menuBar) {
- {
- appleMenu,
- fileMenu,
- editMenu
- };
-};
-
-
-resource rMenu (appleMenu) {
- appleMenu,
- refIsResource * menuTitleRefShift
- + refIsResource * itemRefShift
- + fAllowCache,
- appleMenu,
- {
- appleAbout
- };
-};
-
-
-resource rMenu (fileMenu) {
- fileMenu,
- refIsResource * menuTitleRefShift
- + refIsResource * itemRefShift
- + fAllowCache,
- fileMenu,
- {
- fileNew,
- fileOpen,
- fileClose,
- fileQuit
- };
-};
-
-
-resource rMenu (editMenu) {
- editMenu,
- refIsResource * menuTitleRefShift
- + refIsResource * itemRefShift
- + fAllowCache,
- editMenu,
- {
- editUndo,
- editCut,
- editCopy,
- editPaste,
- editClear
- };
-};
-
-
-resource rMenuItem (editUndo) {
- editUndo,
- "Z", "z",
- 0,
- refIsResource * itemTitleRefShift
- + fDivider,
- editUndo
-};
-
-
-resource rMenuItem (editCut) {
- editCut,
- "X", "x",
- 0,
- refIsResource * itemTitleRefShift,
- editCut
-};
-
-
-resource rMenuItem (editCopy) {
- editCopy,
- "C", "c",
- 0,
- refIsResource * itemTitleRefShift,
- editCopy
-};
-
-
-resource rMenuItem (editPaste) {
- editPaste,
- "V", "v",
- 0,
- refIsResource * itemTitleRefShift,
- editPaste
-};
-
-
-resource rMenuItem (editClear) {
- editClear,
- "", "",
- 0,
- refIsResource * itemTitleRefShift,
- editClear
-};
-
-
-resource rMenuItem (fileNew) {
- fileNew,
- "N", "n",
- 0,
- refIsResource * itemTitleRefShift,
- fileNew
-};
-
-
-resource rMenuItem (fileOpen) {
- fileOpen,
- "O", "o",
- 0,
- refIsResource * itemTitleRefShift
- + fDivider,
- fileOpen
-};
-
-
-resource rMenuItem (fileClose) {
- fileClose,
- "W", "w",
- 0,
- refIsResource * itemTitleRefShift
- + fDivider,
- fileClose
-};
-
-
-resource rMenuItem (fileQuit) {
- fileQuit,
- "Q", "q",
- 0,
- refIsResource * itemTitleRefShift,
- fileQuit
-};
-
-
-resource rMenuItem (appleAbout) {
- appleAbout,
- "", "",
- 0,
- refIsResource * itemTitleRefShift
- + fDivider,
- appleAbout
-};
-
-
-resource rPString (appleMenu, noCrossBank) {"@"};
-resource rPString (fileMenu, noCrossBank) {" File "};
-resource rPString (editMenu, noCrossBank) {" Edit "};
-
-resource rPString (editUndo, noCrossBank) {"Undo"};
-resource rPString (editCut, noCrossBank) {"Cut"};
-resource rPString (editCopy, noCrossBank) {"Copy"};
-resource rPString (editPaste, noCrossBank) {"Paste"};
-resource rPString (editClear, noCrossBank) {"Clear"};
-
-resource rPString (fileNew, noCrossBank) {"New"};
-resource rPString (fileOpen, noCrossBank) {"Open"};
-resource rPString (fileClose, noCrossBank) {"Close"};
-resource rPString (fileQuit, noCrossBank) {"Quit"};
-
-resource rPString (appleAbout, noCrossBank) {"About ___PROJECTNAME___..."};
-
-
-resource rAlertString (aboutAlertString) {
- "43/"
- "___PROJECTNAME___\n"
- " by ___FULLUSERNAME___\n"
- "\n"
- "Contains libraries from ORCA C,\n"
- "Copyright 1991, Byte Works Inc."
- "/^#0\$00";
-};
-
-
-resource rWindParam1 (windowRes) {
- $DDA5, /* wFrameBits */
- nil, /* wTitle */
- 0, /* wRefCon */
- {0, 0, 0, 0}, /* ZoomRect */
- nil, /* wColor ID */
- {0, 0}, /* Origin */
- {1, 1}, /* data size */
- {0, 0}, /* max height-width */
- {8, 8}, /* scroll ver hors */
- {0, 0}, /* page ver horiz */
- 0, /* winfoRefCon */
- 10, /* wInfoHeight */
- {30, 10, 183, 602}, /* wposition */
- infront, /* wPlane */
- nil, /* wStorage */
- $0000 /* wInVerb */
-};
-
diff --git a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/TemplateInfo.plist b/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/TemplateInfo.plist
deleted file mode 100644
index 54f3b18..0000000
--- a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/TemplateInfo.plist
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
-
- Nodes
-
- main.c
- main.h
- main.rez
- Makefile
- make/config.txt
- make/createDiskImage
- make/head.mk
- make/launchEmulator
- make/orca-asm
- make/orca-cc
- make/orca-macgen
- make/orca-rez
- make/system601.2mg
- make/tail.mk
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Definitions
-
- main.c
-
- Path
- main.c
-
- main.h
-
- Path
- main.h
-
- main.rez
-
- Path
- main.rez
-
- make/config.txt
-
- Group
- make
- Path
- make/config.txt
-
- make/createDiskImage
-
- Group
- make
- Path
- make/createDiskImage
-
- make/head.mk
-
- Group
- make
- Path
- make/head.mk
-
- make/launchEmulator
-
- Group
- make
- Path
- make/launchEmulator
-
- make/orca-asm
-
- Group
- make
- Path
- make/orca-asm
-
- make/orca-cc
-
- Group
- make
- Path
- make/orca-cc
-
- make/orca-macgen
-
- Group
- make
- Path
- make/orca-macgen
-
- make/orca-rez
-
- Group
- make
- Path
- make/orca-rez
-
- make/system601.2mg
-
- Group
- make
- Path
- make/system601.2mg
-
- make/tail.mk
-
- Group
- make
- Path
- make/tail.mk
-
- Makefile
-
- Path
- Makefile
-
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Group
-
- Supporting Files
-
- Path
- ___PACKAGENAME___.xcscheme
-
-
- Kind
- Xcode.Xcode3.ProjectTemplateUnitKind
- Identifier
- com.halcyontouch.apple2gsCNDA
- Ancestors
-
- com.apple.dt.unit.externalBuildSystem
-
- Concrete
-
- Description
- This template creates an Apple IIgs C code project to build a new desktop accessory. The project starts with a single C file which you can modify. You can also add more assembly or C files as you may like.
- Options
-
- Targets
-
-
- TargetType
- Legacy
- TargetIdentifier
- com.apple.dt.cocoaLegacyTarget
- BuildToolPath
- ___VARIABLE_buildToolPath___
- BuildToolArgsString
- -C ___PACKAGENAME___ $(ACTION)
- SharedSettings
-
- OTHER_CFLAGS
-
- OTHER_LDFLAGS
-
-
- Configurations
-
- Debug
-
- DEBUGGING_SYMBOLS
- YES
- GCC_GENERATE_DEBUGGING_SYMBOLS
- YES
- GCC_OPTIMIZATION_LEVEL
- 0
-
- Release
-
-
-
-
- ProductType
- com.apple.product-type.tool
- TargetIdentifier
- com.apple.dt.commandLineToolTarget
- Name
- doNotBuild
- SharedSettings
-
- PRODUCT_NAME
- doNotBuild
- GCC_PREPROCESSOR_DEFINITIONS
- inline(X,Y)=""
- pascal=""
- HEADER_SEARCH_PATHS
- $GOLDEN_GATE/Libraries/ORCACDefs
- ~/Library/GoldenGate/Libraries/ORCACDefs
- /Library/GoldenGate/Libraries/ORCACDefs
- ~/GoldenGate/Libraries/ORCACDefs
-
- BuildPhases
-
-
- Class
- Sources
-
-
- Class
- Frameworks
-
-
- Class
- CopyFiles
- DstPath
- /usr/share/man/man1/
- DstSubfolderSpec
- 0
- RunOnlyForDeploymentPostprocessing
- YES
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme b/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme
deleted file mode 100644
index 61815a2..0000000
--- a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.c b/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.c
deleted file mode 100644
index ddeb85d..0000000
--- a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.c
+++ /dev/null
@@ -1,203 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-
-#pragma nda NDAOpen NDAClose NDAAction NDAInit -1 0x03FF " ___PACKAGENAME___\\H**"
-
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "___FILEBASENAME___.h"
-
-
-static BOOLEAN ndaActive;
-static GrafPortPtr winPtr;
-static unsigned int userId;
-static unsigned int resourceId;
-static Str255 gStrBuf;
-
-
-BOOLEAN OpenResourceFork(void)
-{
- GSString255Ptr fPtr;
- unsigned id;
-
- id = SetHandleID(0, FindHandle((Pointer) OpenResourceFork));
- fPtr = (GSString255Ptr) LGetPathname2(id, 1);
- if (toolerror() == 0)
- resourceId = OpenResourceFile(1, NULL, (Pointer) fPtr);
- return toolerror() == 0;
-}
-
-
-void NDAClose(void)
-{
- if (ndaActive) {
- CloseWindow(winPtr);
- winPtr = NULL;
- ndaActive = FALSE;
- }
-
- CloseResourceFile(resourceId);
- ResourceShutDown();
-}
-
-
-void NDAInit(int code)
-{
- /* When code is 1, this is tool startup, otherwise tool
- * shutdown.
- */
-
- if (code) {
- ndaActive = FALSE;
- userId = MMStartUp();
- } else {
- if (ndaActive)
- NDAClose();
- }
-}
-
-
-#pragma databank 1
-void DrawContents(void)
-{
- PenNormal();
- MoveTo(7,10);
- DrawCString("Hello, world!");
-}
-#pragma databank 0
-
-
-GrafPortPtr NDAOpen(void)
-{
- Pointer pathToSelf;
- unsigned int oldResourceApp;
- LevelRecGS levelDCB;
- unsigned int oldLevel;
- SysPrefsRecGS prefsDCB;
- unsigned int oldPrefs;
-
- if (ndaActive)
- return NULL;
-
- oldResourceApp = GetCurResourceApp();
- ResourceStartUp(userId);
- pathToSelf = LGetPathname2(userId, 1);
-
- levelDCB.pCount = 2;
- GetLevelGS(&levelDCB);
- oldLevel = levelDCB.level;
- levelDCB.level = 0;
- SetLevelGS(&levelDCB);
-
- prefsDCB.pCount = 1;
- GetSysPrefsGS(&prefsDCB);
- oldPrefs = prefsDCB.preferences;
- prefsDCB.preferences = (prefsDCB.preferences & 0x1fff) | 0x8000;
- SetSysPrefsGS(&prefsDCB);
-
- resourceId = OpenResourceFile(readEnable, NULL, pathToSelf);
-
- winPtr = NewWindow2("\p ___PACKAGENAME___ ", 0, DrawContents, NULL, 0x02, windowRes, rWindParam1);
-
- SetSysWindow(winPtr);
- ShowWindow(winPtr);
- SelectWindow(winPtr);
- SetPort(winPtr);
-
- ndaActive = TRUE;
-
- prefsDCB.preferences = oldPrefs;
- SetSysPrefsGS(&prefsDCB);
-
- levelDCB.level = oldLevel;
- SetLevelGS(&levelDCB);
-
- SetCurResourceApp(oldResourceApp);
-
- return winPtr;
-}
-
-
-void HandleAction(void)
-{
-}
-
-
-void HandleControl(EventRecord *event)
-{
-}
-
-
-void HandleKey(EventRecord *event)
-{
-}
-
-
-void HandleMenu(int menuItem)
-{
-}
-
-
-BOOLEAN NDAAction(EventRecord *sysEvent, int code)
-{
- int event;
- static EventRecord localEvent;
- unsigned int eventCode;
- BOOLEAN result = FALSE;
-
- switch (code) {
- case runAction:
- HandleAction();
- break;
-
- case eventAction:
- BlockMove((Pointer)sysEvent, (Pointer)&localEvent, 16);
- localEvent.wmTaskMask = 0x001FFFFF;
- eventCode = TaskMasterDA(0, &localEvent);
- switch(eventCode) {
- case updateEvt:
- BeginUpdate(winPtr);
- DrawContents();
- EndUpdate(winPtr);
- break;
-
- case wInControl:
- HandleControl(&localEvent);
- break;
-
- case keyDownEvt:
- case autoKeyEvt:
- HandleKey(&localEvent);
- break;
- }
- break;
-
- case cutAction:
- case copyAction:
- case pasteAction:
- case clearAction:
- result = TRUE;
- HandleMenu(code);
- break;
- }
-
- return result;
-}
-
diff --git a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.h b/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.h
deleted file mode 100644
index 1d030cf..0000000
--- a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-#ifndef _____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____
-#define _____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____
-
-
-#define linedColors 1
-
-#define windowRes 1001
-
-
-#endif /* defined(_____PROJECTNAMEASIDENTIFIER________FILEBASENAMEASIDENTIFIER_____) */
diff --git a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.rez b/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.rez
deleted file mode 100644
index fdbdb0e..0000000
--- a/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/main.rez
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * ___FILENAME___
- * ___PROJECTNAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * ___COPYRIGHT___
- */
-
-
-#include "types.rez"
-
-#include "___FILEBASENAME___.h"
-
-
-resource rWindParam1 (windowRes) {
- $C0A5, /* wFrameBits */
- nil, /* wTitle */
- 0, /* wRefCon */
- {0,0,0,0}, /* ZoomRect */
- linedColors, /* wColor ID */
- {0,0}, /* Origin */
- {0,0}, /* data size */
- {0,0}, /* max height-width */
- {0,0}, /* scroll ver hors */
- {0,0}, /* page ver horiz */
- 0, /* winfoRefcon */
- 0, /* wInfoHeight */
- {50,50,62,200}, /* wposition */
- infront, /* wPlane */
- nil, /* wStorage */
- $0800 /* wInVerb */
-};
-
-
-resource rWindColor (linedColors) {
- 0x0000, /* frameColor */
- 0x0F00, /* titleColor */
- 0x020F, /* tbarColor */
- 0xF0F0, /* growColor */
- 0x00F0, /* infoColor */
-};
diff --git a/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/TemplateInfo.plist b/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/TemplateInfo.plist
deleted file mode 100644
index cceadcc..0000000
--- a/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/TemplateInfo.plist
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-
-
- Nodes
-
- main.s
- Makefile
- make/head.mk
- make/orca-asm
- make/orca-cc
- make/orca-macgen
- make/orca-rez
- make/tail.mk
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Definitions
-
- main.s
-
- Path
- main.s
-
- make/head.mk
-
- Group
- make
- Path
- make/head.mk
-
- make/orca-asm
-
- Group
- make
- Path
- make/orca-asm
-
- make/orca-cc
-
- Group
- make
- Path
- make/orca-cc
-
- make/orca-macgen
-
- Group
- make
- Path
- make/orca-macgen
-
- make/orca-rez
-
- Group
- make
- Path
- make/orca-rez
-
- make/tail.mk
-
- Group
- make
- Path
- make/tail.mk
-
- Makefile
-
- Path
- Makefile
-
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Group
-
- Supporting Files
-
- Path
- ___PACKAGENAME___.xcscheme
-
-
- Kind
- Xcode.Xcode3.ProjectTemplateUnitKind
- Identifier
- com.halcyontouch.apple2gsAsmShellCommand
- Ancestors
-
- com.apple.dt.unit.externalBuildSystem
-
- Concrete
-
- Description
- This template creates an Apple IIgs assembly code project to build an ORCA or GNO shell command. The project starts with a single assembly file which you can modify. You can also add more assembly or C files as you may like.
- Options
-
- Targets
-
-
- TargetType
- Legacy
- TargetIdentifier
- com.apple.dt.cocoaLegacyTarget
- BuildToolPath
- ___VARIABLE_buildToolPath___
- BuildToolArgsString
- -C ___PACKAGENAME___ $(ACTION)
- SharedSettings
-
- OTHER_CFLAGS
-
- OTHER_LDFLAGS
-
-
- Configurations
-
- Debug
-
- DEBUGGING_SYMBOLS
- YES
- GCC_GENERATE_DEBUGGING_SYMBOLS
- YES
- GCC_OPTIMIZATION_LEVEL
- 0
-
- Release
-
-
-
-
- ProductType
- com.apple.product-type.tool
- TargetIdentifier
- com.apple.dt.commandLineToolTarget
- Name
- doNotBuild
- SharedSettings
-
- PRODUCT_NAME
- doNotBuild
- GCC_PREPROCESSOR_DEFINITIONS
- inline(X,Y)=""
- pascal=""
- HEADER_SEARCH_PATHS
- $GOLDEN_GATE/Libraries/ORCACDefs
- ~/Library/GoldenGate/Libraries/ORCACDefs
- /Library/GoldenGate/Libraries/ORCACDefs
- ~/GoldenGate/Libraries/ORCACDefs
-
- BuildPhases
-
-
- Class
- Sources
-
-
- Class
- Frameworks
-
-
- Class
- CopyFiles
- DstPath
- /usr/share/man/man1/
- DstSubfolderSpec
- 0
- RunOnlyForDeploymentPostprocessing
- YES
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/___PACKAGENAME___.xcscheme b/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/___PACKAGENAME___.xcscheme
deleted file mode 100644
index 7e96971..0000000
--- a/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/___PACKAGENAME___.xcscheme
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/main.s b/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/main.s
deleted file mode 100644
index 9d7047f..0000000
--- a/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/main.s
+++ /dev/null
@@ -1,22 +0,0 @@
-;
-; ___FILENAME___
-; ___PROJECTNAME___
-;
-; Created by ___FULLUSERNAME___ on ___DATE___.
-;___COPYRIGHT___
-;
-
- mcopy main.macros
- keep main
-
-Main start
- phk
- plb
- jsl SystemEnvironmentInit
- jsl SysIOStartup
- puts #'Hello, world!',cr=t
- jsl SysIOShutdown
- lda #0
- rtl
- end
-
diff --git a/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/TemplateInfo.plist b/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/TemplateInfo.plist
deleted file mode 100644
index 90eeccc..0000000
--- a/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/TemplateInfo.plist
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-
-
- Nodes
-
- main.c
- Makefile
- make/head.mk
- make/orca-asm
- make/orca-cc
- make/orca-macgen
- make/orca-rez
- make/tail.mk
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Definitions
-
- main.c
-
- Path
- main.c
-
- make/head.mk
-
- Group
- make
- Path
- make/head.mk
-
- make/orca-asm
-
- Group
- make
- Path
- make/orca-asm
-
- make/orca-cc
-
- Group
- make
- Path
- make/orca-cc
-
- make/orca-macgen
-
- Group
- make
- Path
- make/orca-macgen
-
- make/orca-rez
-
- Group
- make
- Path
- make/orca-rez
-
- make/tail.mk
-
- Group
- make
- Path
- make/tail.mk
-
- Makefile
-
- Path
- Makefile
-
- ../___PACKAGENAME___.xcodeproj/xcshareddata/xcschemes/___PACKAGENAME___.xcscheme
-
- Group
-
- Supporting Files
-
- Path
- ___PACKAGENAME___.xcscheme
-
-
- Kind
- Xcode.Xcode3.ProjectTemplateUnitKind
- Identifier
- com.halcyontouch.apple2gsCShellCommand
- Ancestors
-
- com.apple.dt.unit.externalBuildSystem
-
- Concrete
-
- Description
- This template creates an Apple IIgs C code project to build an ORCA or GNO shell command. The project starts with a single C file which you can modify. You can also add more assembly or C files as you may like.
- Options
-
- Targets
-
-
- TargetType
- Legacy
- TargetIdentifier
- com.apple.dt.cocoaLegacyTarget
- BuildToolPath
- ___VARIABLE_buildToolPath___
- BuildToolArgsString
- -C ___PACKAGENAME___ $(ACTION)
- SharedSettings
-
- OTHER_CFLAGS
-
- OTHER_LDFLAGS
-
-
- Configurations
-
- Debug
-
- DEBUGGING_SYMBOLS
- YES
- GCC_GENERATE_DEBUGGING_SYMBOLS
- YES
- GCC_OPTIMIZATION_LEVEL
- 0
-
- Release
-
-
-
-
- ProductType
- com.apple.product-type.tool
- TargetIdentifier
- com.apple.dt.commandLineToolTarget
- Name
- doNotBuild
- SharedSettings
-
- PRODUCT_NAME
- doNotBuild
- GCC_PREPROCESSOR_DEFINITIONS
- inline(X,Y)=""
- pascal=""
- HEADER_SEARCH_PATHS
- $GOLDEN_GATE/Libraries/ORCACDefs
- ~/Library/GoldenGate/Libraries/ORCACDefs
- /Library/GoldenGate/Libraries/ORCACDefs
- ~/GoldenGate/Libraries/ORCACDefs
-
- BuildPhases
-
-
- Class
- Sources
-
-
- Class
- Frameworks
-
-
- Class
- CopyFiles
- DstPath
- /usr/share/man/man1/
- DstSubfolderSpec
- 0
- RunOnlyForDeploymentPostprocessing
- YES
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/___PACKAGENAME___.xcscheme b/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/___PACKAGENAME___.xcscheme
deleted file mode 100644
index 7e96971..0000000
--- a/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/___PACKAGENAME___.xcscheme
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/main.c b/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/main.c
deleted file mode 100644
index 170279a..0000000
--- a/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/main.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * ___FILENAME___
- * ___PACKAGENAME___
- *
- * Created by ___FULLUSERNAME___ on ___DATE___.
- * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
- *
- */
-
-
-#include
-
-
-int main(void)
-{
- printf("Hello, world!\n");
- return 0;
-}
diff --git a/pkg/Templates/File Templates/Apple IIgs/Assembly File.xctemplate/TemplateInfo.plist b/pkg/Templates/File Templates/Apple IIgs/Assembly File.xctemplate/TemplateInfo.plist
index ea02c9e..10030b9 100644
--- a/pkg/Templates/File Templates/Apple IIgs/Assembly File.xctemplate/TemplateInfo.plist
+++ b/pkg/Templates/File Templates/Apple IIgs/Assembly File.xctemplate/TemplateInfo.plist
@@ -2,6 +2,10 @@
+ AllowedTypes
+
+ com.rand-family.xcode.orcam
+
DefaultCompletionName
File
Description
diff --git a/pkg/Templates/File Templates/Apple IIgs/Rez File.xctemplate/TemplateInfo.plist b/pkg/Templates/File Templates/Apple IIgs/Rez File.xctemplate/TemplateInfo.plist
index 3227e56..56346ae 100644
--- a/pkg/Templates/File Templates/Apple IIgs/Rez File.xctemplate/TemplateInfo.plist
+++ b/pkg/Templates/File Templates/Apple IIgs/Rez File.xctemplate/TemplateInfo.plist
@@ -4,7 +4,8 @@
AllowedTypes
- com.apple.rez-source
+ com.rand-family.xcode.orcarez
+ com.apple.rez-source
DefaultCompletionName
File
diff --git a/pkg/createPackage b/pkg/createPackage
index 3fd80fd..bac610e 100755
--- a/pkg/createPackage
+++ b/pkg/createPackage
@@ -9,19 +9,23 @@ cp -R pkg/Plug-ins $TMPDIR
PROJECTS=/tmp/projects.$$
cat > $PROJECTS << EOF
-shell:Shell Command in C
-shell:Shell Command in Assembly
-cda:Classic Desk Accessory in C
-nda:New Desk Accessory in C
-desktop:Desktop Application in C
-cdev:Control Panel in C
+cda:orca:C Classic Desk Accessory
+cdev:orca:C Control Panel
+desktop:orca:C Desktop Application
+shell:gno:C GNO Shell Command
+nda:orca:C New Desk Accessory
+shell:orca:C ORCA Shell Command
+shell:orca:Asm ORCA Shell Command
EOF
while read PROJECT
do
PROJECTTYPE=`echo $PROJECT | awk -F: '{print $1}'`
- PROJECTNAME=`echo $PROJECT | awk -F: '{print $2}'`
- sed "/^# TARGETTYPE=${PROJECTTYPE}/s/^# //" Makefile > "${TMPDIR}/Templates/Apple IIgs/${PROJECTNAME}.xctemplate/Makefile"
+ SHELLTYPE=`echo $PROJECT | awk -F: '{print $2}'`
+ PROJECTNAME=`echo $PROJECT | awk -F: '{print $3}'`
+ sed "
+ /^# TARGETTYPE=${PROJECTTYPE}/s/^# //
+ /^# export ORCA=.*\/${SHELLTYPE}$/s/^# //" Makefile > "${TMPDIR}/Templates/Apple IIgs/${PROJECTNAME}.xctemplate/Makefile"
cp -R make "${TMPDIR}/Templates/Apple IIgs/${PROJECTNAME}.xctemplate/"
done < $PROJECTS
diff --git a/pkg/scripts/preinstall b/pkg/scripts/preinstall
index a0821d0..974b7a2 100755
--- a/pkg/scripts/preinstall
+++ b/pkg/scripts/preinstall
@@ -1,6 +1,6 @@
#!/bin/bash
-for item in ~/"Library/Developer/Xcode/Templates/Apple ][gs" ~/"Library/Developer/Xcode/Templates/File Templates/Apple ][gs"
+for item in ~/"Library/Developer/Xcode/Templates/Apple IIgs" ~/"Library/Developer/Xcode/Templates/File Templates/Apple IIgs"
do
if [ -d "$item" ]
then