From 7af5175942f625d07e5ff610308b0c452dcdb0e8 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Wed, 30 May 2012 03:13:32 -0400
Subject: [PATCH] hooks

---
 bin/compile                  | 6 ++++++
 bin/steps/hooks/post_compile | 5 +++++
 bin/steps/hooks/pre_compile  | 5 +++++
 3 files changed, 16 insertions(+)
 create mode 100644 bin/steps/hooks/post_compile
 create mode 100644 bin/steps/hooks/pre_compile

diff --git a/bin/compile b/bin/compile
index b7141e07..89f42597 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 00000000..6010974a
--- /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 00000000..8fd1f442
--- /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
-- 
GitLab