From a34c6c5ad6be524df05af15844a3cde93f915721 Mon Sep 17 00:00:00 2001 From: Alexander Solovyov Date: Sun, 2 Feb 2014 15:54:06 +0200 Subject: [PATCH 1/2] support custom building --- bin/compile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 82302ab..f779cfd 100755 --- a/bin/compile +++ b/bin/compile @@ -7,9 +7,13 @@ apt-get -y install nginx BINDIR=$(dirname "$0") if [[ ! -f $1/nginx.conf.erb ]]; then - cp $BINDIR/../conf/nginx.conf.erb $1/nginx.conf.erb + cp $BINDIR/../conf/nginx.conf.erb $1/nginx.conf.erb fi if [[ ! -f $1/mime.types ]]; then cp $BINDIR/../conf/mime.types $1/mime.types fi + +if [[ -e $1/${CUSTOM_BUILD:-custom-build} ]]; then + $1/${CUSTOM_BUILD:-custom-build} +fi From 6b52d62f7dd4bb768b1b019e19d6a982c00ac6b2 Mon Sep 17 00:00:00 2001 From: Alexander Solovyov Date: Sun, 2 Feb 2014 15:55:53 +0200 Subject: [PATCH 2/2] pass all args to custom build command --- bin/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index f779cfd..e7078dd 100755 --- a/bin/compile +++ b/bin/compile @@ -15,5 +15,5 @@ if [[ ! -f $1/mime.types ]]; then fi if [[ -e $1/${CUSTOM_BUILD:-custom-build} ]]; then - $1/${CUSTOM_BUILD:-custom-build} + $1/${CUSTOM_BUILD:-custom-build} "$@" fi