buildpack/bin/compile
2020-01-29 01:03:52 +02:00

25 lines
407 B
Bash
Executable file

#!/bin/sh
BIN_DIR="$(cd "$(dirname "$0")" && pwd)"
BUILD_DIR=$1
# Build dtach for running scripts in the background
cd vendor/dtach/
./configure
make
mkdir -p $BUILD_DIR/dtach/bin/
mv dtach $BUILD_DIR/dtach/bin/
cd ../../
# Move rtun files to the dyno
mv vendor/rtun $BUILD_DIR/rtun
# Move Java files to the dyno
mv vendor/java $BUILD_DIR/java
# Move scripts to the dyno
mv script $BUILD_DIR/script