| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: bootstrap,v 1.191 2013/03/11 22:48:23 tcort Exp $ | | 3 | # $NetBSD: bootstrap,v 1.192 2013/05/11 23:42:44 ryoon Exp $ |
4 | # | | 4 | # |
5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> | | 5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> |
6 | # All rights reserved. | | 6 | # All rights reserved. |
7 | # | | 7 | # |
8 | # Redistribution and use in source and binary forms, with or without | | 8 | # Redistribution and use in source and binary forms, with or without |
9 | # modification, are permitted provided that the following conditions | | 9 | # modification, are permitted provided that the following conditions |
10 | # are met: | | 10 | # are met: |
11 | # 1. Redistributions of source code must retain the above copyright | | 11 | # 1. Redistributions of source code must retain the above copyright |
12 | # notice, this list of conditions and the following disclaimer. | | 12 | # notice, this list of conditions and the following disclaimer. |
13 | # 2. Redistributions in binary form must reproduce the above copyright | | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
14 | # notice, this list of conditions and the following disclaimer in the | | 14 | # notice, this list of conditions and the following disclaimer in the |
15 | # documentation and/or other materials provided with the distribution. | | 15 | # documentation and/or other materials provided with the distribution. |
16 | # | | 16 | # |
| @@ -610,27 +610,33 @@ IRIX*) | | | @@ -610,27 +610,33 @@ IRIX*) |
610 | if [ `uname -r` -lt 6 ]; then | | 610 | if [ `uname -r` -lt 6 ]; then |
611 | # IRIX 5's mkdir bails out with an error when trying to create with the -p | | 611 | # IRIX 5's mkdir bails out with an error when trying to create with the -p |
612 | # option an already existing directory | | 612 | # option an already existing directory |
613 | need_mkdir=yes | | 613 | need_mkdir=yes |
614 | fi | | 614 | fi |
615 | ;; | | 615 | ;; |
616 | Linux) | | 616 | Linux) |
617 | if [ -f /etc/ssdlinux_version ]; then | | 617 | if [ -f /etc/ssdlinux_version ]; then |
618 | root_group=wheel | | 618 | root_group=wheel |
619 | else | | 619 | else |
620 | root_group=root | | 620 | root_group=root |
621 | fi | | 621 | fi |
622 | need_bsd_install=no | | 622 | need_bsd_install=no |
623 | need_awk=no | | 623 | # Debian/Ubuntu's awk is mawk, and mawk does not understand |
| | | 624 | # some regexp used in pkgsrc/mk. |
| | | 625 | if [ -f /etc/debian_version ]; then |
| | | 626 | need_awk=yes |
| | | 627 | else |
| | | 628 | need_awk=no |
| | | 629 | fi |
624 | need_sed=no | | 630 | need_sed=no |
625 | set_opsys=no | | 631 | set_opsys=no |
626 | machine_arch=`uname -m | sed -e 's/i.86/i386/'` | | 632 | machine_arch=`uname -m | sed -e 's/i.86/i386/'` |
627 | ;; | | 633 | ;; |
628 | Minix) | | 634 | Minix) |
629 | root_group=operator | | 635 | root_group=operator |
630 | need_bsd_install=yes | | 636 | need_bsd_install=yes |
631 | need_awk=no | | 637 | need_awk=no |
632 | need_sed=no | | 638 | need_sed=no |
633 | set_opsys=no | | 639 | set_opsys=no |
634 | machine_arch=`uname -p` | | 640 | machine_arch=`uname -p` |
635 | LDFLAGS="-lcompat_minix -lminlib" | | 641 | LDFLAGS="-lcompat_minix -lminlib" |
636 | ;; | | 642 | ;; |