add support for a common shell include file, which is evaluated for every make shell call, simplify variable passing to the shell with shvar and shexport templates, use Package/<pkgname>/config for adding config.in data
SVN-Revision: 5014master
parent
c2527c7204
commit
af7a470f9c
@ -0,0 +1,15 @@ |
||||
getvar() { |
||||
eval "echo \"\${$1}\"" |
||||
} |
||||
|
||||
var2file() { |
||||
local var |
||||
eval "var=\"\${$1}\"" |
||||
if [ -n "$var" ]; then echo "$var" > "$2"; fi |
||||
} |
||||
|
||||
isset() { |
||||
local var |
||||
eval "var=\"\${$1}\"" |
||||
[ -n "$var" ] |
||||
} |
Loading…
Reference in new issue