Trying to deploy to Heroku

This commit is contained in:
Dm1tr1y147 2020-07-28 11:43:21 +05:00
parent b5053453d9
commit b62443ecf1
3 changed files with 40 additions and 0 deletions

28
bin/compile Normal file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
set -e
set -o pipefail
BUILD_DIR=$1
CACHE_DIR=$2
function indent() {
c='s/^/ /'
case $(uname) in
Darwin) sed -l "$c";;
*) sed -u "$c";;
esac
}
cd $BUILD_DIR
# configure
if [ -f configure ]; then
echo "-----> Configuring"
./configure 2>&1 | indent
fi
# make
echo "-----> Compiling with Make"
make 2>&1 | indent

8
bin/detect Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# bin/detect <build-dir>
if [[ -f $1/Makefile || -f $1/configure ]]; then
echo "C" && exit 0
else
echo "no" && exit 1
fi

4
bin/release Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# bin/release <build-dir>
echo "--- {}"