mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Similarly to how $(call IXMSG,"hello world") outputs a blue information line from a makefile, provide `ixmsg` to accomplish the same thing in shell scripts. Use a different prefix (`#!:` vs `>>>`) to differentiate it from makefile output.
20 lines
195 B
Bash
20 lines
195 B
Bash
ixmsg()
|
|
{
|
|
printf "\e[37;44m#!: $@\e[0m\n"
|
|
}
|
|
|
|
die()
|
|
{
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
load_cfg()
|
|
{
|
|
local tmp=$(mktemp -p /tmp)
|
|
|
|
grep "$1" $BR2_CONFIG >$tmp
|
|
. $tmp
|
|
rm $tmp
|
|
}
|