diff --git a/bin/compile b/bin/compile index b7141e0712d97587c6ca8d01e623bd9fe71b674c..89f425971d7a8135bd6d266d4ba7d04390ecdafa 100755 --- a/bin/compile +++ b/bin/compile @@ -91,6 +91,9 @@ function puts-warn (){ # Switch to the repo's context. cd $BUILD_DIR +# Experimental pre_compile hook. +source $BIN_DIR/steps/hooks/pre_compile + # ### Sanity Checks # # Just a little peace of mind. @@ -216,4 +219,7 @@ done # ### Fin. +# Experimental post_compile hook. +source $BIN_DIR/steps/hooks/post_compile + # <a href="http://github.com/heroku/heroku-buildpack-python"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://d3nwyuy0nl342s.cloudfront.net/img/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a> \ No newline at end of file diff --git a/bin/steps/hooks/post_compile b/bin/steps/hooks/post_compile new file mode 100644 index 0000000000000000000000000000000000000000..6010974acb24ed531a4a094e1eeee99fe7960cac --- /dev/null +++ b/bin/steps/hooks/post_compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +if [ -f bin/post_compile]; then + source bin/post_compile +fi \ No newline at end of file diff --git a/bin/steps/hooks/pre_compile b/bin/steps/hooks/pre_compile new file mode 100644 index 0000000000000000000000000000000000000000..8fd1f44265f4c499dd00334de30563a41f7add90 --- /dev/null +++ b/bin/steps/hooks/pre_compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +if [ -f bin/pre_compile]; then + source bin/pre_compile +fi \ No newline at end of file