You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/10/25 10:04:57 UTC

incubator-kylin git commit: change the binary package name to apache-kylin--bin.tar.gz

Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging 1318b7344 -> ec63bd714


change the binary package name to apache-kylin-<version>-bin.tar.gz


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

Branch: refs/heads/1.x-staging
Commit: ec63bd714edea7d32631e0fb8d8833c28225c014
Parents: 1318b73
Author: shaofengshi <sh...@apache.org>
Authored: Sun Oct 25 17:04:46 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Sun Oct 25 17:04:46 2015 +0800

----------------------------------------------------------------------
 script/compress.sh | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/ec63bd71/script/compress.sh
----------------------------------------------------------------------
diff --git a/script/compress.sh b/script/compress.sh
index ca1a98a..12988ca 100755
--- a/script/compress.sh
+++ b/script/compress.sh
@@ -29,18 +29,19 @@ fi
 
 #package tar.gz
 echo 'package tar.gz'
-rm -rf dist/kylin-${version}
-mkdir dist/kylin-${version}
+package_name=apache-kylin-${version}-bin
+rm -rf dist/${package_name}
+mkdir dist/${package_name}
 # copy files
-cp -r lib bin conf dist/tomcat examples/sample_cube dist/commit.sha1 dist/kylin-${version}
+cp -r lib bin conf dist/tomcat examples/sample_cube dist/commit.sha1 dist/${package_name}
 # copy license files
-cp LICENSE README.md NOTICE DISCLAIMER  dist/kylin-${version}
+cp LICENSE README.md NOTICE DISCLAIMER  dist/${package_name}
 
-find dist/kylin-${version} -type d -exec chmod 755 {} \;
-find dist/kylin-${version} -type f -exec chmod 644 {} \;
-find dist/kylin-${version} -type f -name "*.sh" -exec chmod 755 {} \;
-cd dist
-tar -cvzf kylin-${version}-bin.tar.gz kylin-${version}
-rm -rf kylin-${version}
+find dist/${package_name} -type d -exec chmod 755 {} \;
+find dist/${package_name} -type f -exec chmod 644 {} \;
+find dist/${package_name} -type f -name "*.sh" -exec chmod 755 {} \;
+cd dist/
+tar -cvzf ${package_name}.tar.gz ${package_name}
+rm -rf ${package_name}
 
-echo "Package ready dist/kylin-${version}-bin.tar.gz"
+echo "Package ready dist/${package_name}.tar.gz"