Browse Source

sde-config: Added config_iscross() function to lib/sde-config.in

karasz/new-early
Alejandro Mery 15 years ago
parent
commit
0afe29851b
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      lib/sde-config.in

+ 11
- 2
lib/sde-config.in

@ -22,8 +22,17 @@ config_exists()
[ -s "$SDEROOT/config/$1/packages" ]
}
config_id()
config_getvar()
{
grep ' SDECFG_ID=' "$SDEROOT/config/$1/config" 2> /dev/null |
grep "^export SDECFG_$1=" "$SDEROOT/config/$2/config" 2> /dev/null |
cut -d"'" -f2
}
config_id()
{
config_getvar ID "$1"
}
config_iscross()
{
[ "$( config_getvar CROSSBUILD "$1" )" = 1 ]
}

Loading…
Cancel
Save