Commit 83b2ca0f authored by Emeric Verschuur's avatar Emeric Verschuur

[ci-toolbox] Update ci-toolbox.sh CITBX_VERSION from VERSION file

parent 66e83ab7
......@@ -59,10 +59,12 @@ job_main() {
print_critical "Unsupported package type: '$pkgtype'"
;;
esac
mkdir -p artifacts
mkdir -p artifacts build
sed -E 's/^(CITBX_VERSION=).*$/\1'"$(cat VERSION)"'/g' ci-toolbox/ci-toolbox.sh > build/ci-toolbox.sh
chmod +x build/ci-toolbox.sh
fpm_args+=(
packaging/root/=/
ci-toolbox/ci-toolbox.sh=/usr/lib/ci-toolbox/ci-toolbox.sh
build/ci-toolbox.sh=/usr/lib/ci-toolbox/ci-toolbox.sh
ci-scripts/common.sh=/usr/lib/ci-toolbox/common.sh
.ci-toolbox.properties=/etc/ci-toolbox/ci-toolbox.properties.default
ci-toolbox/env-setup/=/usr/lib/ci-toolbox/env-setup/
......@@ -72,3 +74,7 @@ job_main() {
)
fpm "${fpm_args[@]}"
}
job_after() {
rm -rf build
}
......@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CITBX_VERSION=5.2.1
CITBX_VERSION=$(cat $(dirname $0)/../VERSION)
CITBX_TOOL_DIR=$(dirname $(readlink -f $0))
if [ -f "$CITBX_TOOL_DIR/ci-toolbox.properties" ]; then
......
......@@ -7,6 +7,7 @@ CITBX_SRC_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})/../)
setup_local() {
_sudo mkdir -p /usr/local/lib/ci-toolbox/{env-setup,3rdparty}
_sudo cp -v $CITBX_SRC_DIR/ci-scripts/common.sh /usr/local/lib/ci-toolbox/common.sh
sed -E -i 's/^(CITBX_VERSION=).*$/\1'"$(cat $CITBX_SRC_DIR/VERSION)"'/g' $CITBX_SRC_DIR/ci-toolbox/ci-toolbox.sh
_sudo cp -v $CITBX_SRC_DIR/ci-toolbox/ci-toolbox.sh /usr/local/lib/ci-toolbox/ci-toolbox.sh
_sudo chmod +x /usr/local/lib/ci-toolbox/ci-toolbox.sh
_sudo cp -v $CITBX_SRC_DIR/ci-toolbox/env-setup/* /usr/local/lib/ci-toolbox/env-setup/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment