File: install.sh

package info (click to toggle)
pbbam 1.6.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,812 kB
  • sloc: cpp: 57,023; xml: 2,749; ansic: 869; python: 534; sh: 277; makefile: 187
file content (21 lines) | stat: -rwxr-xr-x 546 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -vex

###########
# INSTALL #
###########

if [[ ${_install_image} != true ]]; then
  echo "Not installing image (branch: ${bamboo_planRepository_branchName}), returning."
  return 0
fi

if [[ ${PREFIX_ARG} ]]; then
  ## Cleaning out old installation from /mnt/software
  rm -rf "${PREFIX_ARG}"/*
fi

# Ensure code coverage and ASAN are disabled before installing
meson configure -Db_coverage=false -Db_sanitize=none "${CURRENT_BUILD_DIR:-build}"

DESTDIR="${DESTDIR:-/}" ninja -C "${CURRENT_BUILD_DIR:-build}" -v install