summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorobache <obache>2013-02-09 12:41:43 +0000
committerobache <obache>2013-02-09 12:41:43 +0000
commitb610e467f4fdc6a0f1b5ac38e2a98284fe821c3b (patch)
tree5ef487a7b88ea8c9d6d703578e0c33b26cf9ecde /bootstrap/bootstrap
parentfb172bbc3178245cf10158c68aa2ca403c10ff94 (diff)
downloadpkgsrc-b610e467f4fdc6a0f1b5ac38e2a98284fe821c3b.tar.gz
tell Cygiwn to bootstrap.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap21
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