Sha256: 19984eb605ce06a96a1e02fcbd27f733b8616321ec9a071ca6e04840912f13db

Contents?: true

Size: 795 Bytes

Versions: 12

Compression:

Stored size: 795 Bytes

Contents

#!/bin/bash

#/ NAME
#/     shocco -- wrapper to call shocco under virtualenv
#/
#/ SYNOPSIS
#/     shocco ...

# figure out the project root under which bin, lib live
shome="$(cd -P -- "$(dirname -- "$0")/.." && pwd -P)"

# load a meat library
source "$shome/bin/_prime" "$@"

# entry point
function main {
  export BUNDLE_GEMFILE="$shome/.doc/Gemfile"
  export shome

  ( cd $shome/.doc && bundle check 2>&1 >/dev/null || { bundle install --quiet --local --path vendor/bundle || bundle check > /dev/null; } )
  exec bundle exec $shome/bin/venv "$shome/libexec/shocco.sh" "$@"
}

# define command line options:
#   var name, default, description, short option

# parse the command-line
#parse_command_line "$@" || exit $?
#eval set -- "${FLAGS_ARGV}"

# pass arguments to entry point
main "$@"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alpha_omega-0.0.213 libexec/shocco
alpha_omega-0.0.212 libexec/shocco
alpha_omega-0.0.210 libexec/shocco
alpha_omega-0.0.208 libexec/shocco
alpha_omega-0.0.207 libexec/shocco
alpha_omega-0.0.206 libexec/shocco
alpha_omega-0.0.205 libexec/shocco
alpha_omega-0.0.204 libexec/shocco
alpha_omega-0.0.202 libexec/shocco
alpha_omega-0.0.201 libexec/shocco
alpha_omega-0.0.200 libexec/shocco
alpha_omega-0.0.199 libexec/shocco