tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cryptic idiom



On 19/12/2025 06:35, Frédéric Fauberteau wrote:
```
. elif defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
#####
##### For each system-supplied tool, break the tool down into a path
##### and arguments so that either a symlink or a wrapper will be
##### properly created.
#####
TOOLS_CREATE+=    ${_t_}
TOOLS_PATH.${_t_}?= \
   ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
TOOLS_ARGS.${_t_}?= \
   ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:N_asdf_*}
.  endif
```

It selects the first word in TOOLS_PLATFORM.${_t_} in the case that it is a sequence of words.

Ngā mihi, Lloyd

Thank you for this explanation. TOOLS_ARGS' definition should have tipped me off.

Home | Main Index | Thread Index | Old Index