aboutsummaryrefslogtreecommitdiff
path: root/tools/gen-source-tar.sh
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-08-27 19:23:49 -0700
committerSteven Dake <stdake@cisco.com>2015-08-28 00:50:30 -0700
commitf895ee07cc5c1030e32854cf9a4e91bbeaf4de12 (patch)
treecc7d17c2c63bf83f6a983553b8729f67abeac58d /tools/gen-source-tar.sh
parent5c82e0c90ce0fedf523b11b0b933f2276edf8f46 (diff)
downloadkolla-f895ee07cc5c1030e32854cf9a4e91bbeaf4de12.tar.gz
kolla-f895ee07cc5c1030e32854cf9a4e91bbeaf4de12.zip
Remove docker directory
Remove the docker directory (yay) and old build tools. This will result in an f21 failing gate - however, I have a patch submission to remove that gate from our project configuration. Change-Id: I3c461cedb6906422c8076f60c470e773d6cdcf33 Partially-Implements: blueprint remove-docker-dir
Diffstat (limited to 'tools/gen-source-tar.sh')
-rw-r--r--tools/gen-source-tar.sh49
1 files changed, 0 insertions, 49 deletions
diff --git a/tools/gen-source-tar.sh b/tools/gen-source-tar.sh
deleted file mode 100644
index 6f3a6eb20..000000000
--- a/tools/gen-source-tar.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-set -e
-
-: ${SOURCE_INSTALL_METHOD:=curl}
-: ${GIT_REF:=master}
-: ${LOCAL_SOURCE:=/tmp/${COMPONENT}}
-
-function fetch_source_from_uri {
- curl ${TARBALL_URI} -o ${TMPDIR}/${COMPONENT}.tar
-}
-
-function fetch_source_from_git {
- # NOTE(pbourke): do a shallow clone to master only, unless a specific ref is
- # required
- if [ -z ${GIT_REF} ]; then
- git clone --depth=1 ${CLONE_FROM} ${TMPDIR}/${COMPONENT}
- else
- git clone ${CLONE_FROM} ${TMPDIR}/${COMPONENT}
- git --git-dir ${TMPDIR}/${COMPONENT}/.git \
- --work-tree ${TMPDIR}/${COMPONENT}/ \
- checkout ${GIT_REF}
- fi
- tar -cf ${TMPDIR}/${COMPONENT}.tar -C ${TMPDIR} ${COMPONENT}
-}
-
-function fetch_source_from_local {
- tar -cf ${TMPDIR}/${COMPONENT}.tar \
- -C $(dirname ${LOCAL_SOURCE}) ${COMPONENT}
-}
-
-case ${SOURCE_INSTALL_METHOD} in
- curl)
- fetch_source_from_uri
- ;;
- git)
- fetch_source_from_git
- ;;
- local)
- fetch_source_from_local
- ;;
- *)
- cat << EOF
-Unknown install method '${SOURCE_INSTALL_METHOD}'. Please check the value of
-\$SOURCE_INSTALL_METHOD in .buildconf
-EOF
- exit 1
- ;;
-esac