Projecte

General

Perfil

« Anterior | Següent » 

Revisió e5818914

Afegit per Pau Escrich fa més de 11 anys

Add NOTARGETS option to disable a concrete TARGET in nightlycompile. Change some syntax.

Visualitza les diferències:

nightlycompile.sh
# In the output directory, files older than this will be removed
DAYS_TO_PRESERVE="10"
[ -z "$COMMUNITY" ] && COMMUNITY=qMp
[ -z "$BRANCH" ] && BRANCH=testing
COMMUNITY=${COMMUNITY:-qMp}
BRANCH=${BRANCH:-testing}
# If target is not specified, compiling for all targets
[ -z "$TARGETS" ] && TARGETS="$(make list_targets)"
TARGETS=${TARGETS:-$(make list_targets)}
# Targets which are not gonna be compiled
NOTARGETS=${NOTARGETS:-}
# If FORCE is 1, compilation process will be forced
[ -z "$FORCE" ] && FORCE=0
......
(cd build/qmp && git checkout $BRANCH)
for t in $TARGETS; do
[[ "$NOTARGETS" =~ "$t" ]] && continue
echo "Compiling target $t"
nice -n 25 make T=$t build J=2 QMP_GIT_BRANCH=$BRANCH COMMUNITY=$COMMUNITY

També disponible a: Unified diff