diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-08-26 13:37:44 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-08-26 13:37:44 +0300 |
commit | 93f7104a653bd2e5fe2008eb8f42334d9df8542a (patch) | |
tree | bb0bfa2bf7b2af9b5514e4dfcdda316889c14074 /auto/modules/go | |
parent | 0d65c896cfa45f5e3fef05d95c9409fd68ff45c8 (diff) | |
download | unit-93f7104a653bd2e5fe2008eb8f42334d9df8542a.tar.gz unit-93f7104a653bd2e5fe2008eb8f42334d9df8542a.tar.bz2 |
Added configure and command line option --help.
Diffstat (limited to 'auto/modules/go')
-rw-r--r-- | auto/modules/go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/auto/modules/go b/auto/modules/go index dbba443d..27670dca 100644 --- a/auto/modules/go +++ b/auto/modules/go @@ -10,7 +10,7 @@ NXT_GO=go for nxt_option; do case "$nxt_option" in - -*=*) value=`$echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;; + -*=*) value=`echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) value="" ;; esac @@ -29,9 +29,9 @@ END ;; *) - $echo - $echo $0: error: invalid Go option \"$nxt_option\" - $echo + echo + echo $0: error: invalid Go option \"$nxt_option\" + echo exit 1 ;; @@ -40,6 +40,16 @@ END done +if [ ! -f $NXT_AUTOCONF_DATA ]; then + echo + echo Please run common $0 before configuring module \"$nxt_module\". + echo + exit 1 +fi + +. $NXT_AUTOCONF_DATA + + $echo "configuring Go package" $echo "configuring Go package ..." >> $NXT_AUTOCONF_ERR |