Sha256: d5279759f84d70174e02eb87d0c3d1de20cc383fcfec6621bfc03cec24b8b1c4

Contents?: true

Size: 1001 Bytes

Versions: 5

Compression:

Stored size: 1001 Bytes

Contents

#!/bin/bash

set -e

echo "==> Installing required libraries…"

if [ "$(uname)" == "Darwin" ]; then
  for pkg in flex bison cmake valgrind; do
    if hash port 2>/dev/null; then
      if port installed $pkg | grep active | awk '{print $1};'; then
        echo "Package '$pkg' is installed"
      else
        echo "Package '$pkg' is not installed"
        port install $pkg
      fi
    else
      if brew list -1 | grep -q "^${pkg}\$"; then
          echo "Package '$pkg' is installed"
      else
          echo "Package '$pkg' is not installed"
          if [ "$pkg" != "valgrind" ]; then
            brew install $pkg
          fi
      fi
    fi
  done
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
  if [ -f "/etc/arch-release" ]; then
    sudo pacman --needed -S flex bison cmake valgrind
  else
    if [ -z "$TRAVIS" ]; then
      sudo apt-get -qq -y install flex bison cmake valgrind
    else
      echo "Packages already installed on Travis CI."
    fi
  fi
fi

mkdir -p build

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/script/bootstrap
mathematical-1.6.18 ext/mathematical/mtex2MML/script/bootstrap
mathematical-1.6.14 ext/mathematical/mtex2MML/script/bootstrap
mathematical-1.6.13 ext/mathematical/mtex2MML/script/bootstrap
mathematical-1.6.12 ext/mathematical/mtex2MML/script/bootstrap