From 7af5175942f625d07e5ff610308b0c452dcdb0e8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz 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 b7141e0..89f4259 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 + # Fork me on GitHub \ 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 0000000..6010974 --- /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 0000000..8fd1f44 --- /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