Sha256: a0682f5674e00a5826937f97f8181008d953f83712c1f693ea427d2ebb082cd7

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

#!/bin/bash -e

if [[ -z $1 ]]; then
  echo "Missing <TARGET>" >&2
  exit 1
fi

packager_bin() {
	local bin=$1
	local name=$(basename "$1")
	mkdir -p .packager/bin
	cat <<BIN > ".packager/bin/${name}"
#!/bin/sh -e
here=\$(dirname "\$(readlink -f "\$0")")
target=\$(readlink -f "\$here/../../${bin}")
exec "\$target" "\$@"
BIN
	chmod +x ".packager/bin/${name}"
}

TARGET=$1

cp -r "$PWD" "$TARGET"
cd "$TARGET"
bundle install --standalone --binstubs=binstubs --without=development test

rm -rf vendor/bundle/ruby/*/{bin,build_info,cache,doc,extensions,specifications}

packager_bin binstubs/cide

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cide-0.8.1 script/build
cide-0.8.0 script/build