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