blob: d79c879b1f4e3a13f133e525a5ecefe651f239e7 [file] [log] [blame]
# ====================================================================
# Copyright (c) 2014 Obeo
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# Contributors:
# Obeo - initial API and implementation
# ====================================================================
if [ $# -lt 1 ]; then
echo "Execution aborted. One or more of the required parameters is not set.
Usage: $0 unqualifiedVersion [nbBuildToKeep]
- unqualifiedVersion: the unqualified version of the update sites to clean.
- nbBuildToKeep: the number of build to keep. 0 to remove all streams related to the unqualifiedVersion
exit 1
source "$(dirname "${0}")/"
LSINFO "== Clean up '${unqualifiedVersion}' nightly builds (will keep the ${nbBuildToKeep} most recent) =="
cleanUpdateSites "${UPDATE_NIGHTLY_HOME}" "${PROJECT_NAME}" "${NIGHTLY_FOLDER}" "${unqualifiedVersion}" "${nbBuildToKeep}"