| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: bootstrap,v 1.200 2013/10/03 01:24:57 joerg Exp $ | | 3 | # $NetBSD: bootstrap,v 1.201 2014/02/10 10:43:02 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 | # |
| @@ -1166,28 +1166,28 @@ fi | | | @@ -1166,28 +1166,28 @@ fi |
1166 | opsys_finish | | 1166 | opsys_finish |
1167 | | | 1167 | |
1168 | echo "WRKOBJDIR= ${wrkdir}/wrk" >> ${BOOTSTRAP_MKCONF} | | 1168 | echo "WRKOBJDIR= ${wrkdir}/wrk" >> ${BOOTSTRAP_MKCONF} |
1169 | | | 1169 | |
1170 | echo "" >> ${TARGET_MKCONF} | | 1170 | echo "" >> ${TARGET_MKCONF} |
1171 | echo "" >> ${BOOTSTRAP_MKCONF} | | 1171 | echo "" >> ${BOOTSTRAP_MKCONF} |
1172 | if test -n "${mk_fragment}"; then | | 1172 | if test -n "${mk_fragment}"; then |
1173 | cat "${mk_fragment}" >> ${TARGET_MKCONF} | | 1173 | cat "${mk_fragment}" >> ${TARGET_MKCONF} |
1174 | echo "" >> ${TARGET_MKCONF} | | 1174 | echo "" >> ${TARGET_MKCONF} |
1175 | fi | | 1175 | fi |
1176 | echo ".endif # end pkgsrc settings" >> ${TARGET_MKCONF} | | 1176 | echo ".endif # end pkgsrc settings" >> ${TARGET_MKCONF} |
1177 | echo ".endif # end pkgsrc settings" >> ${BOOTSTRAP_MKCONF} | | 1177 | echo ".endif # end pkgsrc settings" >> ${BOOTSTRAP_MKCONF} |
1178 | | | 1178 | |
1179 | # register packages | | 1179 | # build and register packages |
1180 | # usage: register_package <packagedirectory> [additional arguments] | | 1180 | # usage: build_package <packagedirectory> [additional arguments] |
1181 | build_package() { | | 1181 | build_package() { |
1182 | run_cmd "(cd $pkgsrcdir/$1 && $bmake USE_DESTDIR=no -DPKG_PRESERVE MAKECONF=${BOOTSTRAP_MKCONF} install)" | | 1182 | run_cmd "(cd $pkgsrcdir/$1 && $bmake USE_DESTDIR=no -DPKG_PRESERVE MAKECONF=${BOOTSTRAP_MKCONF} install)" |
1183 | } | | 1183 | } |
1184 | | | 1184 | |
1185 | # | | 1185 | # |
1186 | # Please make sure that the following packages and | | 1186 | # Please make sure that the following packages and |
1187 | # only the following packages set BOOTSTRAP_PKG=yes. | | 1187 | # only the following packages set BOOTSTRAP_PKG=yes. |
1188 | # | | 1188 | # |
1189 | echo_msg "Installing packages" | | 1189 | echo_msg "Installing packages" |
1190 | build_package "pkgtools/bootstrap-mk-files" | | 1190 | build_package "pkgtools/bootstrap-mk-files" |
1191 | case "$need_bsd_install" in | | 1191 | case "$need_bsd_install" in |
1192 | yes) | | 1192 | yes) |
1193 | if [ "$use_bsdinstall" = "yes" ]; then | | 1193 | if [ "$use_bsdinstall" = "yes" ]; then |