Sha256: 405048ea5b6d8cb9c8c55ceb69020d861e79a35b0ee1657a0a60ce819d8ad3e6

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

#!/usr/bin/env bash

present(){
  local missing=0
  for name in "$@"; do
    if command -v "$name" >/dev/null 2>&1; then
      echo "got $name"
    else
      echo "no $name"
      missing=1
    fi
  done
  [ $missing -eq 0 ] || return 127
}

if ! present make wget gcc g++ chrpath perl pkg-config automake; then
  if present apt-get; then
    apt-get -y install make wget gcc g++ chrpath perl pkg-config automake
  elif present yum; then
    yum -y install make wget gcc gcc-c++ chrpath perl pkg-config automake
  else
    echo 'unknown package manager'
    exit 1
  fi
fi

if ! make --version 2>&1 | grep -q 'GNU Make'; then
  echo 'non gnu make'
  exit 1
fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
image_optim_pack-0.1.0.20141104 script/vm_init
image_optim_pack-0.1.0 script/vm_init