forked from cappuccino/cappuccino
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git@github.com:280north/cappuccino
- Loading branch information
Showing
11 changed files
with
146 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version = "1.0"?> | ||
<project name = "press" default = "build" basedir = "." > | ||
|
||
<import file = "../../common.xml" /> | ||
|
||
<property name = "Build.Intermediate" location = "${Build}/press.build/${Configuration}" /> | ||
<property name = "Build.press" location = "${Build}/${Configuration}/press" /> | ||
|
||
<target name = "clean"> | ||
<delete dir = "${Build.press}" verbose = "true" /> | ||
</target> | ||
|
||
<target name = "build"> | ||
|
||
<mkdir dir = "${Build.press}" /> | ||
|
||
<copy file = "${basedir}/press.j" tofile = "${Build.press}/press.j" /> | ||
<copy file = "${basedir}/objj-analysis-tools.j" tofile = "${Build.press}/objj-analysis-tools.j" /> | ||
|
||
<copy file = "${basedir}/press" tofile = "${Build.press}/press" /> | ||
|
||
<chmod file = "${Build.press}/press" perm = "+x" /> | ||
|
||
</target> | ||
|
||
<target name = "release" depends = "build"> | ||
|
||
<antcall target = "prepare-release" /> | ||
|
||
<copy file = "${Build.press}/press.j" tofile = "${Build.Cappuccino.Tools.Lib}/press.j" /> | ||
<copy file = "${Build.press}/objj-analysis-tools.j" tofile = "${Build.Cappuccino.Tools.Lib}/objj-analysis-tools.j" /> | ||
|
||
<copy file = "${Build.press}/press" tofile = "${Build.Cappuccino.Tools.Bin}/press" /> | ||
|
||
<chmod file = "${Build.Cappuccino.Tools.Bin}/press" perm = "+x" /> | ||
|
||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
# if OBJJ_HOME isn't set, try to determine it | ||
if [ -z $OBJJ_HOME ]; then | ||
# get path of the executable | ||
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0") | ||
|
||
# resolve symlinks | ||
if [ -h $SELF_PATH ]; then | ||
SELF_PATH=`readlink $SELF_PATH` | ||
fi | ||
|
||
# get second ancestor directory | ||
SELF_DIR=`dirname $SELF_PATH` | ||
export OBJJ_HOME=`dirname $SELF_DIR` | ||
|
||
# check to ensure it exists, print message | ||
if [ -d $OBJJ_HOME ]; then | ||
echo "OBJJ_HOME not set, defaulting to $OBJJ_HOME" 1>&2 | ||
else | ||
echo "OBJJ_HOME not set, default at $OBJJ_HOME doesn't exist, exiting" 1>&2 | ||
exit 2 | ||
fi | ||
fi | ||
|
||
OBJJ_LIB="$OBJJ_HOME/lib" | ||
|
||
PRESS="$OBJJ_LIB/press.j" | ||
|
||
# convert paths for Cygwin | ||
if [[ `uname` == CYGWIN* ]]; then | ||
OBJJ_HOME=`cygpath -w "$OBJJ_HOME"` | ||
PRESS=`cygpath -w "$PRESS"` | ||
fi | ||
|
||
objj $PRESS $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters