blob: 6d275f89aec71f520e430d30ba4009495316fc78 [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}" "${UPDATE_NIGHTLY_URL}" "${PROJECT_NAME}" "${NIGHTLY_FOLDER}" "${unqualifiedVersion}" "${nbBuildToKeep}"