Created
April 1, 2015 17:41
-
-
Save luan/ed9205e297e19a3f932c to your computer and use it in GitHub Desktop.
thebuildpack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: bin/compile <build-dir> <cache-dir> <env-dir> | |
mkdir -p "$1" "$2" | |
build=$(cd "$1/" && pwd) | |
cache=$(cd "$2/" && pwd) | |
export buildpack=$(dirname $(dirname $0)) | |
# CF Common | |
export BUILDPACK_PATH=$buildpack | |
# END CF Common | |
echo -n "-----> thefile contents: " | |
cat $cache/thefile || true | |
echo "should cache me" > $cache/thefile | |
mkdir -p $build/bin | |
> $build/bin/theapp | |
chmod a+x $build/bin/theapp | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# bin/detect <build-dir> | |
echo no | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# bin/release <build-dir> | |
echo "--- {}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment