Skip to content

Commit

Permalink
Update the release script to delete cruft before packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Feb 3, 2015
1 parent a31cc67 commit ffd3d21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}/.."
}
Expand Down

0 comments on commit ffd3d21

Please sign in to comment.