diff options
author | obache <obache@pkgsrc.org> | 2013-02-09 12:41:43 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-02-09 12:41:43 +0000 |
commit | 91a98d5de5255b5fb87ea3056b910c57e73a1257 (patch) | |
tree | 5ef487a7b88ea8c9d6d703578e0c33b26cf9ecde | |
parent | 0ec203b764f2f956ec6cb293cbcefdadd14f160e (diff) | |
download | pkgsrc-91a98d5de5255b5fb87ea3056b910c57e73a1257.tar.gz |
tell Cygiwn to bootstrap.
-rwxr-xr-x | bootstrap/bootstrap | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 5072f8d1959..77b7730678d 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.183 2013/01/31 22:55:21 hans Exp $ +# $NetBSD: bootstrap,v 1.184 2013/02/09 12:41:43 obache Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -467,6 +467,25 @@ AIX) set_opsys=no machine_arch=`get_machine_arch_aix` ;; +CYGWIN_*) + is_root () { + if id -nG | grep -q 'Administrators'; then + return 1 + fi + return 0 + } + root_user=`id -u` + root_grou=`id -g Administrator` + need_bsd_install=no + opsys=`uname -o` + need_awk=no + need_sed=no + need_xargs=no + # only used for unprivileged builds. + whoamiprog='id -u' + groupsprog='id -g' + ;; + Darwin) root_group=wheel need_bsd_install=no |