diff --git a/releng.control/cleanupArtifacts.sh b/releng.control/cleanupArtifacts.sh index 098123093c95c5bae46b7ae525ef66663f6c9302..d3c7062b1d7046085d50feaed9cecb7f61b8a572 100644 --- a/releng.control/cleanupArtifacts.sh +++ b/releng.control/cleanupArtifacts.sh @@ -7,7 +7,7 @@ if [ -z $BUILD_INITIALIZED ] then source commonVariations.shsource - source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource + source ${RELENG_CONTROL}/commonComputedVariables.shsource fi # remove artifacts over n days old @@ -32,7 +32,7 @@ echo " number of directories before cleaning: ${before}"; # empty directories often result from "bad builds". We remove those no matter how old find ${artifactsDir} -mindepth 2 -maxdepth 3 -type d -empty -exec rm -fr '{}' \; # now remove old ones -find ${artifactsDir} -mindepth 2 -maxdepth 2 -ctime +$ndays -execdir ${BUILD_HOME}/releng.control/removeIf.sh '{}' \; +find ${artifactsDir} -mindepth 2 -maxdepth 2 -ctime +$ndays -execdir ${RELENG_CONTROL}/removeIf.sh '{}' \; after=`find ${artifactsDir} -mindepth 2 -maxdepth 2 | wc -l`; echo " number of directories after cleaning: ${after}";