minor, remove useless scripts
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/b08d278e Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/b08d278e Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/b08d278e Branch: refs/heads/KYLIN-2624 Commit: b08d278e5ed688457758eee43aff4f479fd0fb72 Parents: 949237d Author: Hongbin Ma <mahong...@apache.org> Authored: Fri May 12 12:10:21 2017 +0800 Committer: Dong Li <lid...@apache.org> Committed: Fri May 12 12:46:35 2017 +0800 ---------------------------------------------------------------------- build/script/package_diag.sh | 77 ----------------------------- build/script/package_libs.sh | 100 -------------------------------------- 2 files changed, 177 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/b08d278e/build/script/package_diag.sh ---------------------------------------------------------------------- diff --git a/build/script/package_diag.sh b/build/script/package_diag.sh deleted file mode 100755 index 5d163e3..0000000 --- a/build/script/package_diag.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash - -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -echo "Checking maven..." - -if [ -z "$(command -v mvn)" ] -then - echo "Please install maven first so that Kylin packaging can proceed" - exit 1 -else - echo "maven check passed" -fi - -echo "Checking git..." - -if [ -z "$(command -v git)" ] -then - echo "Please install git first so that Kylin packaging can proceed" - exit 1 -else - echo "git check passed" -fi - -dir=$(dirname ${0}) -cd ${dir}/../.. -version=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -E '^[0-9]+\.[0-9]+\.[0-9]+' ` - -if [ "$version" == "" ];then - echo "Failed to identify kylin version (current: `pwd`)" - exit 1 -fi - -echo "kylin version: ${version}" - -echo "package libraries" -mvn clean install -DskipTests || { exit 1; } - -echo "copy libraries" -rm -rf build/tool -mkdir build/tool -cp tool/target/kylin-tool-${version}-assembly.jar build/tool/kylin-tool-${version}.jar -# Copied file becomes 000 for some env (e.g. my Cygwin) -chmod 644 build/tool/kylin-tool-${version}.jar - -echo 'package tar.gz' -package_name=apache-kylin-${version}-diag -cd build/ -rm -rf ${package_name} -mkdir ${package_name} -mkdir ${package_name}/bin -cp -r tool ${package_name} -cp bin/diag.sh ${package_name}/bin/ -rm -rf tool -find ${package_name} -type d -exec chmod 755 {} \; -find ${package_name} -type f -exec chmod 644 {} \; -find ${package_name} -type f -name "*.sh" -exec chmod 755 {} \; -mkdir -p ../dist -tar -cvzf ../dist/${package_name}.tar.gz ${package_name} -rm -rf ${package_name} - -echo "Library package ready: dist/${package_name}.tar.gz" http://git-wip-us.apache.org/repos/asf/kylin/blob/b08d278e/build/script/package_libs.sh ---------------------------------------------------------------------- diff --git a/build/script/package_libs.sh b/build/script/package_libs.sh deleted file mode 100755 index 7ef6b5d..0000000 --- a/build/script/package_libs.sh +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/bash - -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -echo "Checking maven..." - -if [ -z "$(command -v mvn)" ] -then - echo "Please install maven first so that Kylin packaging can proceed" - exit 1 -else - echo "maven check passed" -fi - -echo "Checking git..." - -if [ -z "$(command -v git)" ] -then - echo "Please install git first so that Kylin packaging can proceed" - exit 1 -else - echo "git check passed" -fi - -dir=$(dirname ${0}) -cd ${dir}/../.. -version=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -E '^[0-9]+\.[0-9]+\.[0-9]+' ` - -if [ "$version" == "" ];then - echo "Failed to identify kylin version (current: `pwd`)" - exit 1 -fi - -echo "kylin version: ${version}" -export version - -#commit id -cat << EOF > build/commit_SHA1 -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -EOF -git rev-parse HEAD >> build/commit_SHA1 - -echo "package libraries" -mvn clean install -DskipTests || { exit 1; } - -echo "copy libraries" -rm -rf build/lib -mkdir build/lib -cp assembly/target/kylin-assembly-${version}-job.jar build/lib/kylin-job-${version}.jar -cp storage-hbase/target/kylin-storage-hbase-${version}-coprocessor.jar build/lib/kylin-coprocessor-${version}.jar -cp jdbc/target/kylin-jdbc-${version}.jar build/lib/kylin-jdbc-${version}.jar -# Copied file becomes 000 for some env (e.g. my Cygwin) -chmod 644 build/lib/kylin-job-${version}.jar -chmod 644 build/lib/kylin-coprocessor-${version}.jar -chmod 644 build/lib/kylin-jdbc-${version}.jar - -echo 'package tar.gz' -package_name=apache-kylin-${version}-lib -cd build/ -rm -rf ${package_name} -mkdir ${package_name} -cp -r lib ${package_name} -rm -rf lib -find ${package_name} -type d -exec chmod 755 {} \; -find ${package_name} -type f -exec chmod 644 {} \; -find ${package_name} -type f -name "*.sh" -exec chmod 755 {} \; -mkdir -p ../dist -tar -cvzf ../dist/${package_name}.tar.gz ${package_name} -rm -rf ${package_name} - -echo "Library package ready: dist/${package_name}.tar.gz"