mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-05 12:15:32 +00:00
Added modes to build product and READMEs.
Reviewed by ross.
This commit is contained in:
1 parent
ac227569fd
commit
ee457792c7
28 files changed
+127
-2987
No files matched your search
@@ -0,0 +1,58 @@
|
||||
|
||||
***********************************************************************
|
||||
* Working with Text Editors
|
||||
***********************************************************************
|
||||
|
||||
This package includes syntax highlighting modes for both SubEthaEdit and TextMate.
|
||||
|
||||
***********************************************************************
|
||||
* Installing the Development Tools
|
||||
***********************************************************************
|
||||
|
||||
1. Navigate to Tools (the directory containing this README).
|
||||
2. type sudo ./install-tools
|
||||
3. Once installation is complete, you will be presented with a list of
|
||||
options that looks something like this:
|
||||
|
||||
Installation of the Objective-J tools to /usr/local is almost complete!
|
||||
|
||||
Several environment variables must be set:
|
||||
|
||||
- PATH should include /usr/local/bin:
|
||||
|
||||
export PATH=$PATH:/usr/local/bin
|
||||
|
||||
(currently: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/Users/tolmasky/Development/Cappuccino/Tools/Scripts/:/usr/local/bin:/opt/local/bin:/opt/bin:/Users/tolmasky/bin)
|
||||
|
||||
- OBJJ_HOME should be set to /usr/local/share/objj:
|
||||
|
||||
export OBJJ_HOME=/usr/local/share/objj
|
||||
|
||||
(currently: )
|
||||
|
||||
- STEAM_BUILD should be set to the build directory of your choice (e.x. /Users/tolmasky/objj_build):
|
||||
|
||||
export STEAM_BUILD=/Users/tolmasky/objj_build
|
||||
|
||||
(currently: )
|
||||
|
||||
4. Chances are you can ignore the first two options. If you chose to install everything to the default location, it should work fine without further modification.
|
||||
5. Steam (see below) allows you to specify a global Build directory. If you wish to use it, you must set the STEAM_BUILD environment variable. Building Cappuccino from source requires this for example.
|
||||
|
||||
**********************************************************************
|
||||
* objj
|
||||
**********************************************************************
|
||||
|
||||
objj is a command line Objective-J interpreter and interactive console.
|
||||
|
||||
**********************************************************************
|
||||
* objjc
|
||||
**********************************************************************
|
||||
|
||||
objjc is a static preinterpreter for Objectie-J. It will take Objective-J files and essentially convert them to JavaScript. However, for complex interaction between files, you will probably want to use steam (see below).
|
||||
|
||||
***********************************************************************
|
||||
* steam
|
||||
***********************************************************************
|
||||
|
||||
Steam is a simple tool for managing Objective-J projects. Among other things, it allows you to statically pre-interpret entire Objective-J applications so that you can deliver it without requiring client-side pre-interpretation.
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
***********************************************************************
|
||||
* Working with Text Editors
|
||||
***********************************************************************
|
||||
|
||||
This package includes syntax highlighting modes for both SubEthaEdit and TextMate.
|
||||
|
||||
***********************************************************************
|
||||
* Installing the Development Tools
|
||||
***********************************************************************
|
||||
|
||||
1. Navigate to Tools (the directory containing this README).
|
||||
2. type sudo ./install-tools
|
||||
3. Once installation is complete, you will be presented with a list of
|
||||
options that looks something like this:
|
||||
|
||||
Installation of the Objective-J tools to /usr/local is almost complete!
|
||||
|
||||
Several environment variables must be set:
|
||||
|
||||
- PATH should include /usr/local/bin:
|
||||
|
||||
export PATH=$PATH:/usr/local/bin
|
||||
|
||||
(currently: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/Users/tolmasky/Development/Cappuccino/Tools/Scripts/:/usr/local/bin:/opt/local/bin:/opt/bin:/Users/tolmasky/bin)
|
||||
|
||||
- OBJJ_HOME should be set to /usr/local/share/objj:
|
||||
|
||||
export OBJJ_HOME=/usr/local/share/objj
|
||||
|
||||
(currently: )
|
||||
|
||||
- STEAM_BUILD should be set to the build directory of your choice (e.x. /Users/tolmasky/objj_build):
|
||||
|
||||
export STEAM_BUILD=/Users/tolmasky/objj_build
|
||||
|
||||
(currently: )
|
||||
|
||||
4. Chances are you can ignore the first two options. If you chose to install everything to the default location, it should work fine without further modification.
|
||||
5. Steam (see below) allows you to specify a global Build directory. If you wish to use it, you must set the STEAM_BUILD environment variable. Building Cappuccino from source requires this for example.
|
||||
|
||||
**********************************************************************
|
||||
* objj
|
||||
**********************************************************************
|
||||
|
||||
objj is a command line Objective-J interpreter and interactive console.
|
||||
|
||||
**********************************************************************
|
||||
* objjc
|
||||
**********************************************************************
|
||||
|
||||
objjc is a static preinterpreter for Objectie-J. It will take Objective-J files and essentially convert them to JavaScript. However, for complex interaction between files, you will probably want to use steam (see below).
|
||||
|
||||
***********************************************************************
|
||||
* steam
|
||||
***********************************************************************
|
||||
|
||||
Steam is a simple tool for managing Objective-J projects. Among other things, it allows you to statically pre-interpret entire Objective-J applications so that you can deliver it without requiring client-side pre-interpretation.
|
||||
Binary file not shown.
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>1.0, Copyright Arcaeum, LLC</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>SEEMode.Objective-J</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Objective-J</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>© 2006 Arcaeum, LLC
|
||||
http://www.codingmonkeys.de</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,25 +0,0 @@
|
||||
Changes with Version 1.6 (SEE 2.5.1)
|
||||
*) Uncomment script had wrong icon.
|
||||
|
||||
Changes with Version 1.5 (SEE 2.5)
|
||||
|
||||
*) Added Scripts: NSLog with Function Call, Insert Call To Super, Open Counterpart, Open File In Project, Open Xcode Project, Compile Using Xcode, Un/Comment Selected Lines, Lookup in AppKiDo.
|
||||
*) AUTOCOMPLETE: added missing constants (AddressBook, NSError)
|
||||
|
||||
Changes with Version 1.4 (SEE 2.3)
|
||||
|
||||
*) SYMBOLS: Fixed SEE-490.
|
||||
*) AUTOCOMPLETE: Added important Carbon keywords
|
||||
|
||||
Changes with Version 1.3
|
||||
|
||||
*) SYNTAX: Added some missing Classes and Constants. HYR-587.
|
||||
|
||||
Changes with Version 1.2
|
||||
|
||||
*) SYNTAX: Fixed preprocessor end regex. HYR-410.
|
||||
|
||||
Changes with Version 1.1
|
||||
|
||||
*) SYNTAX: Changed Character to state to fix HYR-371.
|
||||
*) Adding additional Cocoa classes, constants and functions
|
||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE syntax SYSTEM "settings.dtd">
|
||||
<settings>
|
||||
<recognition>
|
||||
<extension>j</extension>
|
||||
<extension>J</extension>
|
||||
</recognition>
|
||||
</settings>
|
||||
@@ -1,56 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE syntax SYSTEM "symbol.dtd">
|
||||
<symbols>
|
||||
|
||||
<blocks>
|
||||
<beginregex>{</beginregex>
|
||||
<endregex>}</endregex>
|
||||
</blocks>
|
||||
|
||||
<symbol id="Objective-J Methods" image="SymbolM" indentation="1" ignoreblocks="yes">
|
||||
<regex>(^[ \t]*[-+][^(-;]*\([A-Za-z0-9 *_]*\)[A-Za-z0-9_ \t]+[^{;]*)</regex>
|
||||
<postprocess>
|
||||
<find>(:) *\([^\)]*\) *[a-zA-Z0-9]*</find>
|
||||
<replace>\1</replace>
|
||||
<find>([\n\r\t]| +|\([^\)]*\))</find>
|
||||
<replace></replace>
|
||||
</postprocess>
|
||||
</symbol>
|
||||
|
||||
<symbol id="Javascript Funtions" image="SymbolF()" indentation="0" ignoreblocks="yes">
|
||||
<regex>(?<=[\n\r]|^)\s*function\s+([^{]*)(?=\s*\{)</regex>
|
||||
<postprocess>
|
||||
<find>\([^\)]*\)</find>
|
||||
<replace>()</replace>
|
||||
<find>[\n\r]</find>
|
||||
<replace> </replace>
|
||||
<find>[ \t]+</find>
|
||||
<replace> </replace>
|
||||
</postprocess>
|
||||
</symbol>
|
||||
|
||||
<symbol id="Objective-J Directives" font-weight="bold" image="SymbolC" indentation="0" ignoreblocks="yes">
|
||||
<regex>(@implementation[^[:cntrl:]{]*)</regex>
|
||||
<postprocess>
|
||||
<find>([\n\r]| +)</find>
|
||||
<replace> </replace>
|
||||
</postprocess>
|
||||
</symbol>
|
||||
|
||||
<symbol id="Objective-J Declarations" font-weight="bold" font-style="italic" image="SymbolC" indentation="0" ignoreblocks="yes">
|
||||
<regex>(@interface[^[:cntrl:]{]*|@protocol[^[:cntrl:]{]*)</regex>
|
||||
<postprocess>
|
||||
<find>([\n\r]| +)</find>
|
||||
<replace> </replace>
|
||||
</postprocess>
|
||||
</symbol>
|
||||
|
||||
<symbol id="CVS/SVN conflict" font-weight="bold" image="SymbolWarn" indentation="0" ignoreblocks="no">
|
||||
<regex>^<<<<<<<[^=]*======[^>]*>>>>>>></regex>
|
||||
<postprocess>
|
||||
<find>.*</find>
|
||||
<replace>Versioning conflict!</replace>
|
||||
</postprocess>
|
||||
</symbol>
|
||||
|
||||
</symbols>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -1,42 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Inserts a [super method] call suitable for the current method.
|
||||
Inserted as a snippet with the incoming arguments used as defaults.
|
||||
|
||||
The default behavior is to add brackets if there is no "[" to the left
|
||||
of the caret (ignoring the tab trigger). This can be changed by modifying
|
||||
the useBrackets line below.
|
||||
|
||||
The command uses heuristics to find which method implementation is
|
||||
being edited. It should be reasonably tolerant to various coding styles,
|
||||
including different bracket and indentation styles.
|
||||
"""
|
||||
|
||||
import sys, os, re, itertools
|
||||
|
||||
protoRe = re.compile(r"^\s*(\+|-)\s*\([^)]+\)((\n|[^{])*)[^;]\{", re.M)
|
||||
|
||||
nlines = int(os.environ["LINE_NUMBER"])-1
|
||||
interestingLines = [l for (count, l) in itertools.takewhile(lambda (n, l): n <= nlines, enumerate(sys.stdin))]
|
||||
invokationLine = interestingLines[-1]
|
||||
|
||||
needsBracket = True
|
||||
postfix = ";"
|
||||
|
||||
protos = protoRe.findall(''.join(interestingLines))
|
||||
|
||||
if len(protos) == 0:
|
||||
sys.exit(1)
|
||||
|
||||
lastProtoSelWithTypes = re.sub(r'\s+', ' ', protos[-1][1])
|
||||
|
||||
counter = itertools.count(1)
|
||||
def replFunc(match):
|
||||
return '%s' % ( match.groups()[0])
|
||||
|
||||
methodCall = re.sub(r'\([^)]+\)\s*(([A-Za-z0-9_][A-Za-z0-9_]*))', replFunc, lastProtoSelWithTypes)
|
||||
|
||||
brackets = needsBracket and ('[', ']') or ('', '')
|
||||
outString = '%ssuper %s%s%s' % (brackets[0], methodCall.strip(), brackets[1], postfix)
|
||||
|
||||
sys.stdout.write(outString)
|
||||
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
Before Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
@@ -39,6 +39,12 @@
|
||||
</files>
|
||||
</iterate>
|
||||
|
||||
<copy file = "READMEs/STARTER-README" tofile = "${Build.Cappuccino.Starter}/README" />
|
||||
<copy file = "READMEs/TOOLS-README" tofile = "${Build.Cappuccino.Tools}/README" />
|
||||
|
||||
<copy file = "SubEthaEdit/Objective-J.mode.zip" tofile = "${Build.Cappuccino.Tools.Editors}/Objective-J.mode.zip" />
|
||||
<copy file = "TextMate/Objective-J.tmbundle.zip" tofile = "${Build.Cappuccino.Tools.Editors}/Objective-J.tmbundle.zip" />
|
||||
|
||||
<zip destfile = "${Build.Cappuccino}/Starter.zip">
|
||||
<fileset dir = "${Build.Cappuccino.Starter}" />
|
||||
</zip>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<filelist refid = "Projects" />
|
||||
</files>
|
||||
</iterate>
|
||||
|
||||
</target>
|
||||
|
||||
<target name = "tools">
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
<property name = "Build.Cappuccino.Tools.Lib" location = "${Build.Cappuccino.Tools}/objj/lib" />
|
||||
<property name = "Build.Cappuccino.Tools.Lib.Frameworks" location = "${Build.Cappuccino.Tools}/objj/lib/Frameworks" />
|
||||
|
||||
<property name = "Build.Cappuccino.Tools.Editors" location = "${Build.Cappuccino.Tools}/Editors" />
|
||||
|
||||
<property environment = "environment" />
|
||||
<property name = "environment.OBJJ_HOME" value = "/usr/local/share/objj" />
|
||||
|
||||
@@ -41,6 +43,8 @@
|
||||
|
||||
<mkdir dir = "${Build.Cappuccino.Tools.Lib.Frameworks}" />
|
||||
|
||||
<mkdir dir = "${Build.Cappuccino.Tools.Editors}" />
|
||||
|
||||
</target>
|
||||
|
||||
<!-- Iterate -->
|
||||
|
||||
Reference in new issue
Block a user