Skip to content

Instantly share code, notes, and snippets.

@luan
Created April 1, 2015 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luan/ed9205e297e19a3f932c to your computer and use it in GitHub Desktop.
Save luan/ed9205e297e19a3f932c to your computer and use it in GitHub Desktop.
thebuildpack
#!/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
#!/usr/bin/env bash
# bin/detect <build-dir>
echo no
exit 1
#!/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