On Sat, Dec 12, 2015 at 8:27 AM, Devin Teske <[email protected]> wrote: > > > On Dec 11, 2015, at 11:55 PM, Olivier Cochard-Labbé <[email protected]> > wrote: > > On Mon, Dec 7, 2015 at 5:02 AM, Warner Losh <[email protected]> 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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
