Module Name: src Committed By: jmcneill Date: Sat Feb 9 11:20:56 UTC 2013
Modified Files: src/distrib/utils/embedded: mkimage Log Message: fix usage again -- -D specifies destdir not releasedir include conf/${h}.conf not conf/rpi.conf fix ./mkimage: line 110: "7" - 1 : syntax error: operand expected (error token is ""7" - 1 ") To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/distrib/utils/embedded/mkimage Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/embedded/mkimage diff -u src/distrib/utils/embedded/mkimage:1.19 src/distrib/utils/embedded/mkimage:1.20 --- src/distrib/utils/embedded/mkimage:1.19 Sat Feb 9 11:15:14 2013 +++ src/distrib/utils/embedded/mkimage Sat Feb 9 11:20:56 2013 @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkimage,v 1.19 2013/02/09 11:15:14 jmcneill Exp $ +# $NetBSD: mkimage,v 1.20 2013/02/09 11:20:56 jmcneill Exp $ # # Copyright (c) 2013 The NetBSD Foundation, Inc. # All rights reserved. @@ -60,7 +60,7 @@ getsize() { usage() { cat << EOF 1>&2 -Usage: $PROG -h <host-arch> [-K <kerneldir>] [-S <srcdir>] [-D <releasedir>] [-c <custom-files-dir>] [-s <Mb size>] [<image>] +Usage: $PROG -h <host-arch> [-K <kerneldir>] [-S <srcdir>] [-D <destdir>] [-c <custom-files-dir>] [-s <Mb size>] [<image>] EOF exit 1 } @@ -107,14 +107,14 @@ done trap cleanup 0 1 2 3 15 -shift $(( "$OPTIND" - 1 )) +shift $(( $OPTIND - 1 )) if [ -n "$1" ]; then # take the next argument as being the image name image="$1" shift fi -. "$DIR/conf/rpi.conf" +. "${DIR}/conf/${h}.conf" echo ${bar} configuring sets ${bar} (echo '/set type=dir uname=root gname=wheel mode=0755'