Warning, file /sdk/codevis/thirdparty/soci/scripts/ci/install.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/bin/sh
0002 # Run install actions for SOCI build in CI builds
0003 #
0004 # Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
0005 #
0006 # Note that this is a /bin/sh script because bash is not installed yet under
0007 # FreeBSD.
0008 . ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
0009 
0010 case "$(uname)" in
0011     Linux)
0012         # Install the bare minimum for the rest to work if we're running on a
0013         # minimum system.
0014         if ! command -v lsb_release > /dev/null; then
0015             # We can't use run_apt here because it uses sudo which may also be
0016             # not available yet.
0017             apt-get $SOCI_APT_OPTIONS update
0018             apt-get $SOCI_APT_OPTIONS install build-essential lsb-release sudo
0019         fi
0020 
0021         packages_to_install="cmake libc6-dbg"
0022         if [ "${WITH_BOOST}" != OFF ]; then
0023             packages_to_install="$packages_to_install  libboost-dev libboost-date-time-dev"
0024         fi
0025 
0026         # Get rid of the repositories that we don't need: not only this takes
0027         # extra time to update, but it also often fails with "Mirror sync in
0028         # progress" errors.
0029         for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
0030 
0031         codename=$(lsb_release --codename --short)
0032         # Enable the `-dbgsym` repositories.
0033         echo "deb http://ddebs.ubuntu.com ${codename} main restricted universe multiverse
0034         deb http://ddebs.ubuntu.com ${codename}-updates main restricted universe multiverse" | \
0035         sudo tee --append /etc/apt/sources.list.d/ddebs.list >/dev/null
0036 
0037         # Import the debug symbol archive signing key from the Ubuntu server.
0038         # Note that this command works only on Ubuntu 18.04 LTS and newer.
0039         run_apt install ubuntu-dbgsym-keyring
0040 
0041         run_apt update
0042         run_apt install ${packages_to_install}
0043         ;;
0044 
0045     FreeBSD)
0046         pkg install -q -y bash cmake
0047         ;;
0048 esac
0049 
0050 install_script="${SOCI_SOURCE_DIR}/scripts/ci/install_${SOCI_CI_BACKEND}.sh"
0051 if [ -x ${install_script} ]; then
0052     echo "Running ${install_script}"
0053     ${install_script}
0054 fi