| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: mksandbox,v 1.6 2013/07/24 22:16:26 jperkin Exp $ | | 3 | # $NetBSD: mksandbox,v 1.7 2015/04/14 08:55:07 jperkin Exp $ |
4 | | | 4 | |
5 | # Copyright (c) 2002,2012 Alistair Crooks <agc@NetBSD.org> | | 5 | # Copyright (c) 2002,2012 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 | # |
| @@ -237,27 +237,27 @@ sandbox=$sandbox | | | @@ -237,27 +237,27 @@ sandbox=$sandbox |
237 | r3() { | | 237 | r3() { |
238 | _R= | | 238 | _R= |
239 | while [ \$# -ge 3 ] | | 239 | while [ \$# -ge 3 ] |
240 | do | | 240 | do |
241 | _R="\$1 \$2 \$3 \$_R" | | 241 | _R="\$1 \$2 \$3 \$_R" |
242 | shift; shift; shift | | 242 | shift; shift; shift |
243 | done | | 243 | done |
244 | echo "\$_R" | | 244 | echo "\$_R" |
245 | } | | 245 | } |
246 | | | 246 | |
247 | fses="\\ | | 247 | fses="\\ |
248 | EOS | | 248 | EOS |
249 | | | 249 | |
250 | if [ ! -z "$kernel" ]; then | | 250 | if [ -n "$kernel" -a -f "$kernel" ]; then |
251 | echo "Copying the kernel" | | 251 | echo "Copying the kernel" |
252 | $cpprog $kernel $sandbox | | 252 | $cpprog $kernel $sandbox |
253 | fi | | 253 | fi |
254 | | | 254 | |
255 | if [ "$with_pkgsrc" = "yes" ]; then | | 255 | if [ "$with_pkgsrc" = "yes" ]; then |
256 | echo "Checking package hierarchy in $localbase and package database in $pkg_dbdir exist" | | 256 | echo "Checking package hierarchy in $localbase and package database in $pkg_dbdir exist" |
257 | $mkdirprog $sandbox/$localbase $sandbox/$pkg_dbdir | | 257 | $mkdirprog $sandbox/$localbase $sandbox/$pkg_dbdir |
258 | fi | | 258 | fi |
259 | | | 259 | |
260 | echo "Make and populate $sandbox/dev" | | 260 | echo "Make and populate $sandbox/dev" |
261 | $mkdirprog $sandbox/dev | | 261 | $mkdirprog $sandbox/dev |
262 | | | 262 | |
263 | case "$opsys" in | | 263 | case "$opsys" in |