Sha256: 87f83b71b375726c235f9979c115357e4fd616d962c9fdb82d2bbaba253f5e7f

Contents?: true

Size: 830 Bytes

Versions: 17

Compression:

Stored size: 830 Bytes

Contents

#!/bin/bash

export DATAPIMP_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/datapimp" "$@"

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
datapimp-1.0.21 packaging/wrapper.sh
datapimp-1.0.20 packaging/wrapper.sh
datapimp-1.0.15 packaging/wrapper.sh
datapimp-1.0.14 packaging/wrapper.sh
datapimp-1.0.13 packaging/wrapper.sh
datapimp-1.0.12 packaging/wrapper.sh
datapimp-1.0.11 packaging/wrapper.sh
datapimp-1.0.10 packaging/wrapper.sh
datapimp-1.0.9 packaging/wrapper.sh
datapimp-1.0.8 packaging/wrapper.sh
datapimp-1.0.6 packaging/wrapper.sh
datapimp-1.0.5 packaging/wrapper.sh
datapimp-1.0.4 packaging/wrapper.sh
datapimp-1.0.3 packaging/wrapper.sh
datapimp-1.0.2 packaging/wrapper.sh
datapimp-1.0.1 packaging/wrapper.sh
datapimp-1.0.0 packaging/wrapper.sh