press command line tool

This commit is contained in:
Tom Robinson committed 2008-10-03 03:56:12 -07:00
1 parent ecc39ff11f
commit 964cb66fa8
3 files changed
+76

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
<file name = "objjc/build.xml" />
<file name = "steam/build.xml" />
<file name = "bake/build.xml" />
<file name = "press/build.xml" />
<file name = "Utilities/build.xml" />
<file name = "NewApplication/build.xml" />
</filelist>
+39
View File
@@ -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>
+36
View File
@@ -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 $@