From 7541737c15998d8454875e932cbad4acf64a0455 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 19 Mar 2012 13:05:01 -0400 Subject: [PATCH] Fix how the tar is built --- ci/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/build.sh b/ci/build.sh index 1973fdaf58..b6813fed22 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -15,4 +15,8 @@ if [ -z "${BUILD_NUMBER}" ]; then fi ID=mitx-${GIT_BRANCH}-${BUILD_NUMBER}-${GIT_COMMIT} -tar --exclude=.git --exclude=build -czf build/${ID}.tgz ${REPO} +REPO_ROOT=$(dirname $0)/.. +BUILD_DIR=${REPO_ROOT}/build + +mkdir -p ${BUILD_DIR} +tar -v --exclude=.git --exclude=build --transform="s#^#mitx/#" -czf ${BUILD_DIR}/${ID}.tgz ${REPO_ROOT}