Revisió d418904d
Afegit per Pau Escrich fa més de 10 anys
scripts/extra-packages.script | ||
---|---|---|
[ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] || [ ! -f "$FILE" ] && exit 1
|
||
|
||
for i in $EXTRA_PACKS; do
|
||
AUX="$(grep $i $FILE)"
|
||
[ ! -z "$AUX" ] && {
|
||
PKG="CONFIG_PACKAGE_$i"
|
||
AUX="$(grep $PKG $FILE | tr -d '\n')"
|
||
[ -n "$AUX" ] && {
|
||
[ "$PREPOST" = "PRE_BUILD" ] && echo "- Adding extra package: $i" >&2 && sed -i -e s/"${AUX}"/"CONFIG_PACKAGE_$i=y"/g $FILE
|
||
[ "$PREPOST" = "POST_BUILD" ] && echo "- Removing extra package: $1" >&2 && sed -i -e s/"${AUX}"/"# CONFIG_PACKAGE_$i is not set"/g $FILE
|
||
[ "$PREPOST" = "POST_BUILD" ] && echo "- Removing extra package: $i" >&2 && sed -i -e s/"${AUX}"/"# CONFIG_PACKAGE_$i is not set"/g $FILE
|
||
}
|
||
done
|
||
|
També disponible a: Unified diff
Fix extra packages script