| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: bootstrap,v 1.146 2009/05/29 15:58:37 rillig Exp $ | | 3 | # $NetBSD: bootstrap,v 1.147 2009/06/15 17:02:14 joerg Exp $ |
4 | # | | 4 | # |
5 | # | | 5 | # |
6 | # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. | | 6 | # Copyright (c) 2001-2002 Alistair G. Crooks. 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 | # 3. All advertising materials mentioning features or use of this software | | 16 | # 3. All advertising materials mentioning features or use of this software |
| @@ -331,26 +331,31 @@ bootstrap_sh=${SH-/bin/sh} | | | @@ -331,26 +331,31 @@ bootstrap_sh=${SH-/bin/sh} |
331 | bootstrap_sh_set=${SH+set} | | 331 | bootstrap_sh_set=${SH+set} |
332 | | | 332 | |
333 | # On some newer Ubuntu installations, /bin/sh is a symlink to /bin/dash, | | 333 | # On some newer Ubuntu installations, /bin/sh is a symlink to /bin/dash, |
334 | # whose echo(1) is not BSD-compatible. | | 334 | # whose echo(1) is not BSD-compatible. |
335 | dash_echo_test=`$bootstrap_sh -c 'echo "\\100"'` | | 335 | dash_echo_test=`$bootstrap_sh -c 'echo "\\100"'` |
336 | if [ "$dash_echo_test" = "@" ]; then | | 336 | if [ "$dash_echo_test" = "@" ]; then |
337 | { echo "ERROR: Your shell's echo command is not BSD-compatible." | | 337 | { echo "ERROR: Your shell's echo command is not BSD-compatible." |
338 | echo "ERROR: Please select another shell by setting the environment" | | 338 | echo "ERROR: Please select another shell by setting the environment" |
339 | echo "ERROR: variable SH." | | 339 | echo "ERROR: variable SH." |
340 | } 1>&2 | | 340 | } 1>&2 |
341 | exit 1; | | 341 | exit 1; |
342 | fi | | 342 | fi |
343 | | | 343 | |
| | | 344 | if [ -n "$PKG_PATH" ]; then |
| | | 345 | echo "ERROR: Please unset PKG_PATH before running bootstrap." 1>&2 |
| | | 346 | exit 1; |
| | | 347 | fi |
| | | 348 | |
344 | build_start=`date` | | 349 | build_start=`date` |
345 | echo_msg "bootstrap command: $0 $@" | | 350 | echo_msg "bootstrap command: $0 $@" |
346 | echo_msg "bootstrap started: $build_start" | | 351 | echo_msg "bootstrap started: $build_start" |
347 | | | 352 | |
348 | # ensure system locations are empty; we will set them later when we know | | 353 | # ensure system locations are empty; we will set them later when we know |
349 | # whether they will be system wide or user specific | | 354 | # whether they will be system wide or user specific |
350 | prefix= | | 355 | prefix= |
351 | pkgdbdir= | | 356 | pkgdbdir= |
352 | pkgmandir= | | 357 | pkgmandir= |
353 | sysconfdir= | | 358 | sysconfdir= |
354 | varbase= | | 359 | varbase= |
355 | | | 360 | |
356 | full=no | | 361 | full=no |