diff options
author | obache <obache> | 2013-02-09 12:41:43 +0000 |
---|---|---|
committer | obache <obache> | 2013-02-09 12:41:43 +0000 |
commit | d7a985b6b1e49560bd0fa345286950d718a04ad4 (patch) | |
tree | 5ef487a7b88ea8c9d6d703578e0c33b26cf9ecde /bootstrap | |
parent | 1c7bcacd25998680b77cce02f97f995e41e6d538 (diff) | |
download | pkgsrc-d7a985b6b1e49560bd0fa345286950d718a04ad4.tar.gz |
tell Cygiwn to bootstrap.
Diffstat (limited 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 |