/[gentoo-x86]/scripts/bootstrap-macos.sh
Gentoo

Contents of /scripts/bootstrap-macos.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download) (as text)
Sat Dec 30 20:36:33 2006 UTC (12 years, 9 months ago) by grobian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
File MIME type: text/x-sh
FILE REMOVED
Shove Darwin/OSX bootstrap scripts into the attic, this stuff is not
maintained/used any more, and is best out of sight.

1 pvdabeel 1.1 #!/bin/bash
2     # Copyright 2004 The Gentoo Foundation, Pieter Van den Abeele
3     # Distributed under the terms of the GNU General Public License, v2
4 grobian 1.10 # $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap-macos.sh,v 1.9 2004/11/21 17:32:37 kito Exp $
5 pvdabeel 1.1
6 pvdabeel 1.4 # Make sure sudo passwd is asked for
7    
8     sudo true
9    
10     # Source functions to have colors and nice output
11    
12 pvdabeel 1.1 trap 'exit 1' TERM KILL INT QUIT ABRT
13    
14     echo
15 pvdabeel 1.7 echo -e "Gentoo for Mac OS X; http://www.gentoo.org/"
16 pvdabeel 1.1 echo -e "Copyright 2004 The Gentoo Foundation ; Distributed under the GPL v2"
17     echo
18    
19 pvdabeel 1.4 NAME="Mac OS X"
20     RELEASE="10"
21 pvdabeel 1.1
22 pvdabeel 1.4 case "`uname -r`" in
23     6*)
24 pvdabeel 1.5 # We don't really support this
25 pvdabeel 1.4 NAME="Jaguar"
26 pvdabeel 1.5 # We reuse the Panther profile
27     RELEASE="10.3"
28 pvdabeel 1.4 ;;
29 kito 1.8 7*)
30 pvdabeel 1.4 NAME="Panther"
31     RELEASE="10.3"
32     ;;
33     8*)
34 kito 1.8 NAME="Tiger"
35 pvdabeel 1.4 RELEASE="10.4"
36     ;;
37     esac
38 pvdabeel 1.3
39 kito 1.8 sudo ln -sf /usr/portage/profiles/default-darwin/macos/${RELEASE} /etc/make.profile
40 pvdabeel 1.1
41 pvdabeel 1.6 # ebegin "Portage will attempt taming your ${NAME}"
42 pvdabeel 1.4
43     function missing_devtools {
44 pvdabeel 1.1 ewend 1
45 pvdabeel 1.6 echo -e "Please install the ${NAME} developer tools (>1.1)"
46 pvdabeel 1.1 echo
47     exit 1
48     }
49    
50 pvdabeel 1.4 gcc -v 2> /dev/null || missing_devtools
51    
52     echo
53 kito 1.9 echo -e "Portage successfully tamed your ${NAME}"

  ViewVC Help
Powered by ViewVC 1.1.20