diff --git a/pkg/Plug-ins/.DS_Store b/pkg/Plug-ins/.DS_Store
new file mode 100644
index 0000000..6436a4e
Binary files /dev/null and b/pkg/Plug-ins/.DS_Store differ
diff --git a/pkg/Plug-ins/OrcaM.ideplugin/Contents/Info.plist b/pkg/Plug-ins/OrcaM.ideplugin/Contents/Info.plist
new file mode 100755
index 0000000..f7aad4a
--- /dev/null
+++ b/pkg/Plug-ins/OrcaM.ideplugin/Contents/Info.plist
@@ -0,0 +1,35 @@
+
+
+
+
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleIdentifier
+ com.rand-family.xcode.orcam
+ CFBundleName
+ ORCAM Xcode Plug-in
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+ CFBundlePackageType
+ BNDL
+ CFBundleSignature
+ ????
+ CFBundleDevelopmentRegion
+ English
+ CFBundleSupportedPlatforms
+
+ MacOSX
+
+ DVTPlugInCompatibilityUUIDs
+
+ 8A66E736-A720-4B3C-92F1-33D9962C69DF
+ 65C57D32-1E9B-44B8-8C04-A27BA7AAE2C4
+ DA4FDFD8-C509-4D8B-8B55-84A7B66AE701
+ E0A62D1F-3C18-4D74-BFE5-A4167D643966
+ DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C
+ CA351AD8-3176-41CB-875C-42A05C7CDEC7
+
+
+
diff --git a/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata b/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata
new file mode 100755
index 0000000..9f57c2d
--- /dev/null
+++ b/pkg/Plug-ins/OrcaM.ideplugin/Contents/Resources/OrcaM.xcplugindata
@@ -0,0 +1,70 @@
+
+
+
+
+ plug-in
+
+ extensions
+
+ Xcode.FileDataType.ORCAM.Assembly
+
+ id
+ Xcode.FileDataType.ORCAM.Assembly
+ localizedDescription
+ ORCAM Assembly Source
+ name
+ File type for ORCAM assembly
+ point
+ Xcode.FileDataType
+ typeConformedTo
+
+
+ typeIdentifier
+ public.assembly-source
+
+
+ typeIdentifier
+ com.rand-family.xcode.orcam
+ version
+ 1.0
+
+ Xcode.SourceCodeLanguage.ORCAM-Assembly
+
+ commentSyntax
+
+
+ prefix
+ #
+
+
+ conformsTo
+
+
+ identifier
+ Xcode.SourceCodeLanguage.Generic
+
+
+ fileDataType
+
+
+ identifier
+ com.rand-family.xcode.orcam
+
+
+ id
+ Xcode.SourceCodeLanguage.ORCAM-Assembly
+ languageName
+ ORCAM-Assembly
+ languageSpecification
+ xcode.lang.asm.orcam
+ name
+ ORCAM Assembly
+ point
+ Xcode.SourceCodeLanguage
+ version
+ 1.0
+
+
+
+
+
diff --git a/pkg/Specifications/OrcaM.xclangspec b/pkg/Specifications/OrcaM.xclangspec
new file mode 100644
index 0000000..49d2592
--- /dev/null
+++ b/pkg/Specifications/OrcaM.xclangspec
@@ -0,0 +1,122 @@
+// Orca/M 65816 Assembler language specs
+(
+
+/****************************************************************************/
+// MARK: Keywords
+/****************************************************************************/
+
+ {
+ Identifier = "xcode.lang.asm.orcam.identifier";
+ Syntax = {
+ StartChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
+ Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$_.";
+ Type = "xcode.syntax.identifier";
+ };
+ },
+
+ {
+ Identifier = "xcode.lang.asm.orcam.directive";
+ Syntax = {
+ StartAtBOL = YES;
+ StartChars = ".";
+ Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
+ Type = "xcode.syntax.keyword";
+ };
+ },
+
+/****************************************************************************/
+// MARK: Simple Syntax Coloring
+/****************************************************************************/
+
+ {
+ Identifier = "xcode.lang.asm.orcam";
+ Description = "ORCAM Assembler Coloring";
+ BasedOn = "xcode.lang.simpleColoring";
+ IncludeInMenu = YES;
+ Name = "Assembly (ORCAM)";
+ Syntax = {
+ Tokenizer = "xcode.lang.asm.orcam.lexer";
+ IncludeRules = (
+ "xcode.lang.asm.orcam.label"
+ );
+ Type = "xcode.syntax.plain";
+ };
+ },
+ {
+ Identifier = "xcode.lang.asm.orcam.lexer";
+ Syntax = {
+ IncludeRules = (
+ "xcode.lang.comment",
+ "xcode.lang.comment.singleline",
+ "xcode.lang.asm.orcam.comment.singleline.semi",
+ "xcode.lang.asm.orcam.comment.singleline.at",
+ "xcode.lang.asm.orcam.comment.singleline.pound",
+ "xcode.lang.string",
+ "xcode.lang.character",
+ "xcode.lang.number",
+ "xcode.lang.asm.orcam.directive",
+ "xcode.lang.asm.orcam.identifier",
+ );
+ };
+ },
+
+ {
+ Identifier = "xcode.lang.asm.orcam.comment.singleline.semi";
+ Syntax = {
+ Start = ";";
+ EscapeChar = "\\";
+ End = "\n";
+ IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
+ Type = "xcode.syntax.comment";
+ };
+ },
+
+ {
+ Identifier = "xcode.lang.asm.orcam.comment.singleline.at";
+ Syntax = {
+ Start = "@";
+ EscapeChar = "\\";
+ End = "\n";
+ IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
+ Type = "xcode.syntax.comment";
+ };
+ },
+
+ {
+ Identifier = "xcode.lang.asm.orcam.comment.singleline.pound";
+ Syntax = {
+ StartAtBOL = YES;
+ Start = "#";
+ EscapeChar = "\\";
+ End = "\n";
+ IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
+ Type = "xcode.syntax.comment";
+ };
+ },
+
+ {
+ Identifier = "xcode.lang.asm.orcam.label";
+ Syntax = {
+ StartAtBOL = YES;
+ Tokenizer = "xcode.lang.asm.orcam.lexer";
+ Rules = (
+ "xcode.lang.asm.orcam.label.name",
+ ":",
+ );
+ Type = "xcode.syntax.definition.function";
+ };
+ },
+
+ {
+ Identifier = "xcode.lang.asm.orcam.label.name";
+ Syntax = {
+ StartAtBOL = YES;
+ Tokenizer = "xcode.lang.asm.orcam.lexer";
+ Rules = (
+ "xcode.lang.asm.orcam.identifier",
+ );
+ Type = "xcode.syntax.name.partial";
+ };
+ },
+
+)
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
new file mode 100644
index 0000000..61815a2
--- /dev/null
+++ b/pkg/Templates/Apple IIgs/Classic Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
new file mode 100644
index 0000000..61815a2
--- /dev/null
+++ b/pkg/Templates/Apple IIgs/Control Panel in C.xctemplate/___PACKAGENAME___.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
new file mode 100644
index 0000000..61815a2
--- /dev/null
+++ b/pkg/Templates/Apple IIgs/Desktop Application in C.xctemplate/___PACKAGENAME___.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
new file mode 100644
index 0000000..61815a2
--- /dev/null
+++ b/pkg/Templates/Apple IIgs/New Desk Accessory in C.xctemplate/___PACKAGENAME___.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
new file mode 100644
index 0000000..7e96971
--- /dev/null
+++ b/pkg/Templates/Apple IIgs/Shell Command in Assembly.xctemplate/___PACKAGENAME___.xcscheme
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
new file mode 100644
index 0000000..7e96971
--- /dev/null
+++ b/pkg/Templates/Apple IIgs/Shell Command in C.xctemplate/___PACKAGENAME___.xcscheme
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pkg/createPackage b/pkg/createPackage
index 472ca2a..3fd80fd 100755
--- a/pkg/createPackage
+++ b/pkg/createPackage
@@ -2,7 +2,10 @@
TMPDIR=/tmp/pkg.$$
+mkdir $TMPDIR
cp -R pkg/Templates $TMPDIR
+cp -R pkg/Specifications $TMPDIR
+cp -R pkg/Plug-ins $TMPDIR
PROJECTS=/tmp/projects.$$
cat > $PROJECTS << EOF
@@ -18,17 +21,17 @@ while read PROJECT
do
PROJECTTYPE=`echo $PROJECT | awk -F: '{print $1}'`
PROJECTNAME=`echo $PROJECT | awk -F: '{print $2}'`
- sed "/^# TARGETTYPE=${PROJECTTYPE}/s/^# //" Makefile > "${TMPDIR}/Apple IIgs/${PROJECTNAME}.xctemplate/Makefile"
- cp -R make "${TMPDIR}/Apple IIgs/${PROJECTNAME}.xctemplate/"
+ sed "/^# TARGETTYPE=${PROJECTTYPE}/s/^# //" Makefile > "${TMPDIR}/Templates/Apple IIgs/${PROJECTNAME}.xctemplate/Makefile"
+ cp -R make "${TMPDIR}/Templates/Apple IIgs/${PROJECTNAME}.xctemplate/"
done < $PROJECTS
rm -f $PROJECTS
-pkgbuild --root $TMPDIR --version 0.1 --identifier com.halcyontouch.Apple2gsTemplate.pkg --install-location /Library/Developer/Xcode/Templates/ --scripts pkg/scripts/ Apple2GSXcodeTemplate.pkg
+pkgbuild --root $TMPDIR --version 0.1 --identifier com.halcyontouch.Apple2gsTemplate.pkg --install-location /Library/Developer/Xcode/ --scripts pkg/scripts/ Apple2GSXcodeTemplate.pkg
productbuild --distribution pkg/Distribution.xml --resource ./pkg temp.pkg
rm Apple2GSXcodeTemplate.pkg
#productsign --sign "Developer ID Installer: Halcyon Touch Software" temp.pkg Apple2GSXcodeTemplate.pkg
cp temp.pkg Apple2GSXcodeTemplate.pkg
rm temp.pkg
-rm -rf $TMPDIR
+#rm -rf $TMPDIR