Not bogus at all. It is perfect Makefile syntax
var = value
No problem. It works.
I can understand if this is not an intended or expected usage. But it
is fully functional.
It also works in bash scripts.
In Tcl scripts, I do have to have a bit of a wrapper.
# Get the suse version. If a parameter is given, the '.' in
the version us replaced with it.
proc getSUSErelease {{map .}} {
set ret "Undefined"
if {![catch {set ver [open "/etc/os-release"]} fid] } {
while {[gets $ver line] >= 0} {
if {[string compare -length 10 "$line"
"VERSION = "] == 0} {
set ret [string range "$line" 10 end]
}
}
close $ver
set ret [string map ". $map" $ret]
}
return $ret
}
Programmers. What to do with them, huh?
On Wed, Sep 28, 2016 at 3:49 PM, Jan Engelhardt
On Wednesday 2016-09-28 11:14, Roger Oberholtzer wrote:
Okay. We use this in Makefiles via a simple "include /etc/os-release".
That is totally bogus. os-release is not written in make syntax, but (a really restricted set of) sh. You will see once you have something like
PRETTY_NAME='The $$$ Generating Distribution' -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org