Trying to deploy to Heroku
This commit is contained in:
parent
b5053453d9
commit
b62443ecf1
28
bin/compile
Normal file
28
bin/compile
Normal 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
8
bin/detect
Normal 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
4
bin/release
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# bin/release <build-dir>
|
||||
|
||||
echo "--- {}"
|
Loading…
x
Reference in New Issue
Block a user