svn commit: r291913 - head/tools/tools/nanobsd

Warner Losh imp at bsdimp.com
Sun Dec 13 00:41:57 UTC 2015


On Sat, Dec 12, 2015 at 8:27 AM, Devin Teske <devin at shxd.cx> wrote:

>
>
> On Dec 11, 2015, at 11:55 PM, Olivier Cochard-Labbé <olivier at cochard.me>
> wrote:
>
> On Mon, Dec 7, 2015 at 5:02 AM, Warner Losh <imp at freebsd.org> wrote:
>
>> Author: imp
>> Date: Mon Dec  7 04:02:31 2015
>> New Revision: 291913
>> URL: https://svnweb.freebsd.org/changeset/base/291913
>>
>> Log:
>>   Generally use shorter, more idiomatic sh expressions in a bunch of
>>   places.
>>
>> Modified:
>>   head/tools/tools/nanobsd/defaults.sh   (contents, props changed)
>>
>
>
> ​Hi,
>
> I beleive there is a tipo here :
>>
>
>>
>> Modified: head/tools/tools/nanobsd/defaults.sh
>>
>> ==============================================================================
>> --- 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)
>>
>>  #######################################################################
>> @@ -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=/usr/obj/nanobsd.${NANO_NAME}
>> -       test -n "${MAKEOBJDIRPREFIX}" || MAKEOBJDIRPREFIX=${NANO_OBJ}
>> -       test -n "${NANO_DISKIMGDIR}" || NANO_DISKIMGDIR=${NANO_OBJ}
>> +       : ${NANO_OBJ:=/usr/obj/nanobsd.${NANO_NAME}}
>> +       : ${MAKEOBJDIRPREFIX:=${NANO_OBJ}}
>> +       : ${NANO_DISKIMGDIR=:${NANO_OBJ}}
>>         NANO_WORLDDIR=${NANO_OBJ}/_.w
>>         NANO_MAKE_CONF_BUILD=${MAKEOBJDIRPREFIX}/make.conf.build
>>         NANO_MAKE_CONF_INSTALL=${NANO_OBJ}/make.conf.install
>>
>>
>
>
> ​Notice the line:
> : ${NANO_DISKIMGDIR=:${NANO_OBJ}}
>
>
> Author meant ":=" instead of "=:"
>

Correct. It should be fixed now.

Warner


More information about the svn-src-all mailing list