Sha256: 851b215c9f6ccfd904f7811ae4a5478607c1f60efa4726da34e189c15cf44529

Contents?: true

Size: 824 Bytes

Versions: 70

Compression:

Stored size: 824 Bytes

Contents

#!/bin/bash

export BRIEF_PWD=$PWD
set -e

TARGET_FILE=$0

cd `dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`

# Iterate down a (possible) chain of symlinks
while [ -L "$TARGET_FILE" ]
do
    TARGET_FILE=`readlink $TARGET_FILE`
    cd `dirname $TARGET_FILE`
    TARGET_FILE=`basename $TARGET_FILE`
done

# Compute the canonicalized name by finding the physical path
# for the directory we're in and appending the target file.
PHYS_DIR=`pwd -P`
RESULT=$PHYS_DIR/$TARGET_FILE

# Figure out where this script is located.
SELFDIR=$(dirname "$RESULT")

# Tell Bundler where the Gemfile and gems are.
export BUNDLE_GEMFILE="$SELFDIR/lib/app/Gemfile"
unset BUNDLE_IGNORE_CONFIG

# Run the actual app using the bundled Ruby interpreter.
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/app/bin/brief" "$@"

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
brief-1.17.14 packaging/wrapper.sh
brief-1.17.13 packaging/wrapper.sh
brief-1.17.12 packaging/wrapper.sh
brief-1.17.11 packaging/wrapper.sh
brief-1.17.10 packaging/wrapper.sh
brief-1.17.9 packaging/wrapper.sh
brief-1.17.8 packaging/wrapper.sh
brief-1.17.7 packaging/wrapper.sh
brief-1.17.5 packaging/wrapper.sh
brief-1.17.4 packaging/wrapper.sh
brief-1.17.3 packaging/wrapper.sh
brief-1.17.2 packaging/wrapper.sh
brief-1.17.1 packaging/wrapper.sh
brief-1.17.0 packaging/wrapper.sh
brief-1.16.2 packaging/wrapper.sh
brief-1.16.1 packaging/wrapper.sh
brief-1.16.0 packaging/wrapper.sh
brief-1.15.5 packaging/wrapper.sh
brief-1.15.4 packaging/wrapper.sh
brief-1.15.3 packaging/wrapper.sh