File: setup

package info (click to toggle)
ruby-regexp-parser 2.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 968 kB
  • sloc: ruby: 6,396; sh: 12; makefile: 6
file content (17 lines) | stat: -rwxr-xr-x 339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -euo pipefail

# install gems
bundle

# install ragel
if [[ $(command -v ragel) == "" ]]; then
  if [[ $(command -v brew) != "" ]]; then
    brew install ragel
  elif [[ $(command -v apt-get) != "" ]]; then
    sudo apt-get install -y ragel
  else
    echo "could not install ragel, please do so manually"
    exit 1
  fi
fi