From b1b8210664c644259e219373098e4511815e12df Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Tue, 4 Mar 2008 15:11:00 -0600 Subject: [PATCH] add install-macosx, which will use port to install git, and then bootstrap factor --- misc/factor.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/misc/factor.sh b/misc/factor.sh index 4f503f427b..01ec694048 100755 --- a/misc/factor.sh +++ b/misc/factor.sh @@ -95,6 +95,7 @@ check_installed_programs() { ensure_program_installed md5sum md5 ensure_program_installed cut case $OS in + macosx) ensure_program_installed port;; netbsd) ensure_program_installed gmake;; esac check_gcc_version @@ -371,20 +372,26 @@ make_boot_image() { } -install_libraries() { +install_libraries_apt() { yes | sudo apt-get install sudo libc6-dev libfreetype6-dev libx11-dev xorg-dev glutg3-dev wget git-core git-doc rlwrap gcc make check_ret sudo } +install_libraries_port() { + ensure_program_installed port + yes | sudo port install git-core +} + usage() { - echo "usage: $0 install|install-x11|self-update|quick-update|update|bootstrap|net-bootstrap" + echo "usage: $0 install|install-x11|install-macosx|self-update|quick-update|update|bootstrap|net-bootstrap" echo "If you are behind a firewall, invoke as:" echo "env GIT_PROTOCOL=http $0 " } case "$1" in install) install ;; - install-x11) install_libraries; install ;; + install-x11) install_libraries_apt; install ;; + install-macosx) install_libraries_port; install ;; self-update) update; make_boot_image; bootstrap;; quick-update) update; refresh_image ;; update) update; update_bootstrap ;;