From: Ken Rice Date: Tue, 10 Feb 2015 16:30:06 +0000 (-0600) Subject: make this play cleaner with bamboo... if you are using this script destination dirs... X-Git-Tag: v1.4.17~1^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe2a58a37faebbd43cf9948bc95f94aff44517b;p=thirdparty%2Ffreeswitch.git make this play cleaner with bamboo... if you are using this script destination dirs have changed to be more inline with the debian builds. This is part of the updates for deploying bamboo --- diff --git a/scripts/ci/src_tarball.sh b/scripts/ci/src_tarball.sh index d9bead19ae..da47e38fea 100755 --- a/scripts/ci/src_tarball.sh +++ b/scripts/ci/src_tarball.sh @@ -16,7 +16,8 @@ else fi #This should be a RAM Drive -dst_dir="${tmp_dir}/jenkins.$$/$dst_name" +build_dir="jenkins.$$" +dst_dir="${tmp_dir}/${build_dir}/$dst_name" if [ -d "$dst_dir" ]; then echo "error: destination directory $dst_dir already exists." 1>&2 @@ -41,9 +42,14 @@ zip -r $dst_name.zip $dst_name rm -rf ${dst_name}.tar $dst_dir -mkdir -p ${src_repo}/src_dist -mv -f ${dst_name}.tar.* ${src_repo}/src_dist -mv -f $dst_name.zip ${src_repo}/src_dist +mkdir -p ${src_repo}/../src_dist +mv -f ${dst_name}.tar.* ${src_repo}/../src_dist +mv -f $dst_name.zip ${src_repo}/../src_dist + +cd ${tmp_dir} +ls -al +rm -rf ${build_dir} +ls -al cat 1>&2 <