From ffd3d21dc57ed2f9c5778ab73c0e18fe62a83245 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Tue, 3 Feb 2015 12:57:34 -0800 Subject: [PATCH] Update the release script to delete cruft before packaging. --- build/common.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/common.sh b/build/common.sh index c5294108ce066..535cefe99b718 100644 --- a/build/common.sh +++ b/build/common.sh @@ -471,6 +471,11 @@ function kube::release::package_tarballs() { # Clean out any old releases rm -rf "${RELEASE_DIR}" mkdir -p "${RELEASE_DIR}" + + # Clean out cruft + find _output/release-stage/ -name '*~' -exec rm {} \; + find _output/release-stage/ -name '#*#' -exec rm {} \; + find _output/release-stage/ -name '.DS*' -exec rm {} \; kube::release::package_client_tarballs kube::release::package_server_tarballs @@ -630,6 +635,11 @@ function kube::release::package_full_tarball() { cp "${KUBE_ROOT}/LICENSE" "${release_stage}/" cp "${KUBE_ROOT}/Vagrantfile" "${release_stage}/" + # Clean out cruft + find ${release_stage} -name '*~' -exec rm {} \; + find ${release_stage} -name '#*#' -exec rm {} \; + find ${release_stage} -name '.DS*' -exec rm {} \; + local package_name="${RELEASE_DIR}/kubernetes.tar.gz" kube::release::create_tarball "${package_name}" "${release_stage}/.." }