mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 17:32:03 +00:00
New: Add --rsync-base option to bootstrap.sh (#2769)
Existing --copy-local option to use local cappuccino-base has following limitations which are cumbersome when updating bootstrap process * local source must be a zip archive - which requires an extra step after making changes to source * local zip archive is erased after install - which makes repetitive testing more difficult This commit intended to allow testing of updates to cappuccino-base narwhal-jsc. With macOS 10.14 and later, narwhal-jsc must use modern c++ standard library. libedit must do the same, so the dependency reference to it is updated to version which is current at this time.
This commit is contained in:
1 parent
8a3eb0d83b
commit
57f6f3b318
1 file changed
+13
-1
+13
-1
@@ -185,6 +185,7 @@ while [ $# -gt 0 ]; do
|
||||
--copy-local) local_distrib="$2"; shift;;
|
||||
--github-user) github_user="$2"; shift;;
|
||||
--github-ref) github_ref="$2"; shift;;
|
||||
--rsync-base) local_base="$2"; shift;;
|
||||
-q|--quiet) verbosity=$[verbosity - 1];;
|
||||
-v|--verbose) verbosity=$[verbosity + 1];;
|
||||
*) cat >&2 <<-EOT
|
||||
@@ -197,6 +198,7 @@ usage: ./bootstrap.sh [OPTIONS]
|
||||
--copy-local: Use a local copy instead of downloading zips.
|
||||
--github-user [USER]: Github user (default: $github_user).
|
||||
--github-ref [REF]: Use another git ref (default: $github_ref).
|
||||
--rsync-base: Use a local development base repo instead of downloading zips.
|
||||
-q | --quiet: Output less logging.
|
||||
-v | --verbose: Output more logging.
|
||||
EOT
|
||||
@@ -311,6 +313,16 @@ if [ "$install_cappuccino" ]; then
|
||||
echo "Cloning Cappuccino base from \"$git_repo\"..."
|
||||
git clone "$git_repo" "$install_directory"
|
||||
(cd "$install_directory" && git checkout "origin/$github_ref")
|
||||
elif [ -n "local_base" ]; then
|
||||
echo "rsyncing local copy of the base distribution from $local_base to $install_directory"
|
||||
|
||||
quiet_arg=""
|
||||
if (( $verbosity < 2 )); then quiet_arg="-q"; fi
|
||||
# Use rsync to copy a local version of cappuccino-base to install directory
|
||||
# Unlike --local-copy option, leave rsync source directory intact
|
||||
# for further development and/or testing
|
||||
rsync -avz --exclude '.git' "$local_base" "$install_directory"
|
||||
check_and_exit
|
||||
elif [ -n "$local_distrib" ]; then
|
||||
echo "Extracting local copy of the distribution from $local_distrib to $install_directory"
|
||||
|
||||
@@ -379,7 +391,7 @@ if [ `uname` = "Darwin" ]; then
|
||||
if $(autoconf --version | head -1 | python -c "import sys, re; major, minor=re.search(r'(\d+)\.(\d+)', sys.stdin.read()).groups(); sys.exit((int(major) < $needed_autoconf_major or int(minor) < $needed_autoconf_minor) and 1)"); then
|
||||
# Don't bother checking the return code of this operation. Even if it fails, it's still
|
||||
# worthwhile to continue and attempt the full build.
|
||||
(cd "$install_directory/packages/narwhal-jsc/deps/libedit-20100424-3.0" && autoreconf -if)
|
||||
(cd "$install_directory/packages/narwhal-jsc/deps/libedit-20180525-3.1" && autoreconf -if)
|
||||
fi
|
||||
|
||||
if ! (cd "$install_directory/packages/narwhal-jsc/" && make webkit); then
|
||||
|
||||
Reference in new issue
Block a user