Skip to content

Commit

Permalink
Merge branch 'master' of github.com:280north/cappuccino
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Mar 31, 2010
2 parents 068cdb9 + 675969a commit acac29d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AppKit/CPTableView.j
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
// FIX ME: we have a lot of redundent init stuff in initWithFrame: and initWithCoder: we should move it all into here.
- (void)_init
{
_dropOperationFeedbackView = [[_dropOperationDrawingView alloc] initWithFrame:_CGRectMakeZero()];
_dropOperationFeedbackView = [[_CPDropOperationDrawingView alloc] initWithFrame:_CGRectMakeZero()];
[_dropOperationFeedbackView setTableView:self];

_lastColumnShouldSnap = NO;
Expand Down
2 changes: 1 addition & 1 deletion Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ task ("demos", function()

// Testing

task("test", ["build", "test-only"]);
task("test", ["CommonJS", "test-only"]);

task("test-only", function()
{
Expand Down
26 changes: 26 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,32 @@ function check_and_exit () {
fi
}

function check_build_environment () {
# make sure user is running HotSpot JVM
java -version 2>&1 | grep HotSpot &> /dev/null
if [ ! "$?" = "0" ]; then
java_ver=`java -version 2>&1 | egrep "(Client|Server)"`
if [ "$java_ver" = "" ]; then
java_ver="your JVM"
fi
echo "Error: Narwhal is not compatible with $java_ver. Please switch to the Sun (HotSpot) JVM and re-run bootstrap.sh."
exit 1
fi

# make sure other dependencies are installed and on the $PATH
OTHER_DEPS=(gcc unzip curl)

for dep in ${OTHER_DEPS[@]}; do
which "$dep" &> /dev/null
if [ ! "$?" = "0" ]; then
echo "Error: $dep is required to build Cappuccino. Please install $dep and re-run bootstrap.sh."
exit 1
fi
done
}

check_build_environment

if [ -w "/usr/local" ]; then
default_directory="/usr/local/narwhal"
else
Expand Down

0 comments on commit acac29d

Please sign in to comment.