mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 07:55:52 +00:00
Merge branch '0.9.2a'
This commit is contained in:
commit
38499c006a
2 files changed
+28
-14
No files matched your search
+11
-11
@@ -20,7 +20,8 @@ System Requirements
|
||||
To run Cappuccino applications, all you need is a web browser that understands
|
||||
JavaScript.
|
||||
|
||||
To build Cappuccino itself, please read more here: [Getting and Building the Source](http://wiki.github.com/cappuccino/cappuccino/getting-and-building-the-source>).
|
||||
To build Cappuccino itself, please read below. More information is available
|
||||
here: [Getting and Building the Source](http://wiki.github.com/cappuccino/cappuccino/getting-and-building-the-source>).
|
||||
|
||||
If you're using Windows, you'll also need [Cygwin](http://www.cygwin.com/).
|
||||
|
||||
@@ -30,12 +31,13 @@ and contribute your work back to the Cappuccino community, you'll want to
|
||||
|
||||
Getting Started
|
||||
---------------
|
||||
These instructions are for building a development copy of Cappuccino. If you'd
|
||||
just like to get started using Cappuccino for your web apps, you should
|
||||
instead download a pre-compiled copy of Cappuccino from:
|
||||
To get started, download and install the current release version of Cappuccino:
|
||||
|
||||
<http://cappuccino.org/download/>
|
||||
$ curl https://raw.github.com/cappuccino/cappuccino/0.9.2a/bootstrap.sh >/tmp/cappuccino_bootstrap.sh && sh /tmp/cappuccino_bootstrap.sh
|
||||
|
||||
If you'd just like to get started using Cappuccino for your web apps, you are done.
|
||||
|
||||
The rest of these instructions are for building a development copy of Cappuccino.
|
||||
To build Cappuccino from source, check out the most recent stable version from GitHub:
|
||||
|
||||
$ git clone git://github.com/cappuccino/cappuccino.git (git)
|
||||
@@ -44,13 +46,11 @@ or download the zipball of the most recent source code:
|
||||
|
||||
<http://github.com/cappuccino/cappuccino/zipball/master> (zip)
|
||||
|
||||
If this is your first build and your system does not have narwhal and jake
|
||||
installed, run the bootstrap script to install it and all of its dependencies:
|
||||
Then, simply type `jake` from within the root of the Cappuccino directory. If you
|
||||
get an error like `jake: command not found`, you forgot to run the bootstrap script
|
||||
as described above.
|
||||
|
||||
$ ./bootstrap.sh
|
||||
|
||||
Then, simply type `jake` from within the root of the Cappuccino directory.
|
||||
This will build a "release" copy of the frameworks. Typing `jake debug` will
|
||||
Jake will build a "release" copy of the frameworks. Typing `jake debug` will
|
||||
build a debug version.
|
||||
|
||||
`jake install` will build Cappuccino and associated tools and install them for general use.
|
||||
|
||||
+17
-3
@@ -81,9 +81,9 @@ function check_and_exit () {
|
||||
fi
|
||||
}
|
||||
|
||||
function check_build_environment () {
|
||||
function check_install_environment () {
|
||||
# make sure dependencies are installed and on the $PATH
|
||||
CAPP_BUILD_DEPS=(java gcc unzip)
|
||||
CAPP_BUILD_DEPS=(java unzip)
|
||||
|
||||
for dep in ${CAPP_BUILD_DEPS[@]}; do
|
||||
which "$dep" &> /dev/null
|
||||
@@ -113,7 +113,19 @@ function check_build_environment () {
|
||||
fi
|
||||
}
|
||||
|
||||
check_build_environment
|
||||
function check_build_environment () {
|
||||
CAPP_BUILD_DEPS=(gcc)
|
||||
|
||||
for dep in ${CAPP_BUILD_DEPS[@]}; do
|
||||
which "$dep" &> /dev/null
|
||||
if [ ! "$?" = "0" ]; then
|
||||
echo "Error: $dep is required to build Cappuccino components. Please install $dep and re-run bootstrap.sh."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
check_install_environment
|
||||
|
||||
if [ -w "/usr/local" ]; then
|
||||
default_directory="/usr/local/narwhal"
|
||||
@@ -297,6 +309,8 @@ if [ `uname` = "Darwin" ]; then
|
||||
echo "This is optional but will make building and running Cappuccino and Objective-J "
|
||||
echo "much faster."
|
||||
if prompt "yes"; then
|
||||
check_build_environment
|
||||
|
||||
# The narwhal-jsc package is already installed within the base kit.
|
||||
if ! (cd "$install_directory/packages/narwhal-jsc" && make webkit); then
|
||||
rm -rf "$install_directory/packages/narwhal-jsc"
|
||||
|
||||
Reference in new issue
Block a user