You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by iw...@apache.org on 2022/10/11 09:54:22 UTC
[bigtop] branch master updated: BIGTOP-3839: Rename bin file bigtop-select to distro-select on rpm package (#1032)
This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new e492f58a BIGTOP-3839: Rename bin file bigtop-select to distro-select on rpm package (#1032)
e492f58a is described below
commit e492f58ab0b7dabdf69cf277f878a41a43930340
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Tue Oct 11 17:54:16 2022 +0800
BIGTOP-3839: Rename bin file bigtop-select to distro-select on rpm package (#1032)
---
.../src/common/bigtop-select/{bigtop-select => distro-select} | 0
bigtop-packages/src/common/bigtop-select/install_select.sh | 10 +++++-----
bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bigtop-packages/src/common/bigtop-select/bigtop-select b/bigtop-packages/src/common/bigtop-select/distro-select
similarity index 100%
rename from bigtop-packages/src/common/bigtop-select/bigtop-select
rename to bigtop-packages/src/common/bigtop-select/distro-select
diff --git a/bigtop-packages/src/common/bigtop-select/install_select.sh b/bigtop-packages/src/common/bigtop-select/install_select.sh
index fbbabb21..6534be7c 100644
--- a/bigtop-packages/src/common/bigtop-select/install_select.sh
+++ b/bigtop-packages/src/common/bigtop-select/install_select.sh
@@ -66,11 +66,11 @@ DOC_DIR=${DOC_DIR:-/usr/share/doc/bigtop-select}
LIB_DIR=${LIB_DIR:-/usr/lib/bigtop-select}
BIN_DIR=${BIN_DIR:-/usr/bin}
CONF_DIR=${CONF_DIR:-/etc/bigtop-select/conf.dist}
-stack_selector=bigtop-select
-conf_selector=conf-select
+
+STACK_SELECTOR=distro-select
+CONF_SELECTOR=conf-select
# Install packages
install -d -p -m 755 $PREFIX${LIB_DIR}/
-# install -d -p -m 555 $PREFIX${BIN_DIR}/
-install -p -m 755 ${DISTRO_DIR}/${conf_selector} $PREFIX${LIB_DIR}/
-install -p -m 755 ${DISTRO_DIR}/${stack_selector} $PREFIX${LIB_DIR}/
+install -p -m 755 ${DISTRO_DIR}/${STACK_SELECTOR} $PREFIX${LIB_DIR}/
+install -p -m 755 ${DISTRO_DIR}/${CONF_SELECTOR} $PREFIX${LIB_DIR}/
diff --git a/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec b/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
index c0386194..fe47e76c 100644
--- a/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
+++ b/bigtop-packages/src/rpm/bigtop-select/SPECS/bigtop-select.spec
@@ -29,7 +29,7 @@ BuildArch: noarch
Source0: install_select.sh
Source1: LICENSE
Source2: conf-select
-Source3: bigtop-select
+Source3: distro-select
Requires: bash
# "which" command is needed for a lot of projects.