Date: Sat, 12 Dec 2015 07:27:09 -0800 From: Devin Teske <devin@shxd.cx> To: =?utf-8?Q?Olivier_Cochard-Labb=C3=A9?= <olivier@cochard.me> Cc: Warner Losh <imp@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>, Devin Teske <dteske@freebsd.org> Subject: Re: svn commit: r291913 - head/tools/tools/nanobsd Message-ID: <4D007463-F8E5-4092-9FA4-0396E0A1444D@shxd.cx> In-Reply-To: <CA%2Bq%2BTcrSPfGgwy5majfhHZUdKiE4iO8rmkkJY3dzGWTUFut5yQ@mail.gmail.com> References: <201512070402.tB742V3Z081964@repo.freebsd.org> <CA%2Bq%2BTcrSPfGgwy5majfhHZUdKiE4iO8rmkkJY3dzGWTUFut5yQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Dec 11, 2015, at 11:55 PM, Olivier Cochard-Labb=C3=A9 <olivier@cochard.= me> wrote: >=20 >> On Mon, Dec 7, 2015 at 5:02 AM, Warner Losh <imp@freebsd.org> wrote: >=20 >> Author: imp >> Date: Mon Dec 7 04:02:31 2015 >> New Revision: 291913 >> URL: https://svnweb.freebsd.org/changeset/base/291913 >>=20 >> Log: >> Generally use shorter, more idiomatic sh expressions in a bunch of >> places. >>=20 >> Modified: >> head/tools/tools/nanobsd/defaults.sh (contents, props changed) >=20 >=20 > =E2=80=8BHi, >=20 > I beleive there is a tipo here : > =E2=80=8B=20 >>=20 >> Modified: head/tools/tools/nanobsd/defaults.sh >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >> --- head/tools/tools/nanobsd/defaults.sh Mon Dec 7 04:02:19 2015 = (r291912) >> +++ head/tools/tools/nanobsd/defaults.sh Mon Dec 7 04:02:31 2015 = (r291913) >>=20 >> ####################################################################### >> @@ -949,21 +949,21 @@ export_var ( ) { # Don't wawnt a subshe >> # Call this function to set defaults _after_ parsing options. >> # dont want a subshell otherwise variable setting is thrown away. >> set_defaults_and_export ( ) { >> - test -n "${NANO_OBJ}" || NANO_OBJ=3D/usr/obj/nanobsd.${NANO_NAME}= >> - test -n "${MAKEOBJDIRPREFIX}" || MAKEOBJDIRPREFIX=3D${NANO_OBJ} >> - test -n "${NANO_DISKIMGDIR}" || NANO_DISKIMGDIR=3D${NANO_OBJ} >> + : ${NANO_OBJ:=3D/usr/obj/nanobsd.${NANO_NAME}} >> + : ${MAKEOBJDIRPREFIX:=3D${NANO_OBJ}} >> + : ${NANO_DISKIMGDIR=3D:${NANO_OBJ}} >> NANO_WORLDDIR=3D${NANO_OBJ}/_.w >> NANO_MAKE_CONF_BUILD=3D${MAKEOBJDIRPREFIX}/make.conf.build >> NANO_MAKE_CONF_INSTALL=3D${NANO_OBJ}/make.conf.install >=20 > =E2=80=8BNotice the line: > : ${NANO_DISKIMGDIR=3D:${NANO_OBJ}} Author meant ":=3D" instead of "=3D:" --=20 Devin=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D007463-F8E5-4092-9FA4-0396E0A1444D>