Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master f5f04a058 -> ae046c89d


make dir in tarball match tarball name


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d388a139
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d388a139
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d388a139

Branch: refs/heads/master
Commit: d388a139662bc84d3585bee9ab5201a5a72ac2bf
Parents: f5f04a0
Author: Dan Kirkwood <dang...@gmail.com>
Authored: Thu Jun 15 10:34:14 2017 -0600
Committer: Eric Friedrich <fri...@apache.org>
Committed: Thu Jun 15 13:13:07 2017 -0400

----------------------------------------------------------------------
 build/functions.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d388a139/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index 72f2bab..cdf8670 100755
--- a/build/functions.sh
+++ b/build/functions.sh
@@ -162,13 +162,14 @@ function createTarball() {
        local projName=trafficcontrol
        local version=$(getVersion "$TC_DIR")
        local tarball="dist/apache-$projName-$version-incubating.tar.gz"
+       local tardir=$(basename $tarball .tar.gz)
 
        # Create a BULDNUMBER file and add to tarball
        local bndir=$(mktemp -d)
         getBuildNumber >"$bndir/BUILD_NUMBER"
 
         # create the tarball only from files in repo and BUILD_NUMBER
-        tar -czf "$tarball" -C "$bndir" BUILD_NUMBER -C "$projDir" 
--exclude-vcs --transform "s@^@$projName-$version-incubating/@S" $(git ls-files)
+        tar -czf "$tarball" -C "$bndir" BUILD_NUMBER -C "$projDir" 
--exclude-vcs --transform "s@^@$tardir/@S" $(git ls-files)
         rm -r "$bndir"
         echo "$tarball"
 }

Reply via email to