From 65b0ab5fe6cf98b24ca55f1394b0db2f37620584 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Fri, 26 Aug 2022 19:02:41 +0300 Subject: [PATCH] [scripts] Minor updates. --- scripts/_z-run | 4 ++++ scripts/deploy.z-run | 2 +- scripts/go.z-run | 14 +++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/_z-run b/scripts/_z-run index fbe74ad..32186d8 100644 --- a/scripts/_z-run +++ b/scripts/_z-run @@ -1,6 +1,10 @@ #!/dev/null +&&== env-fallback __BUILD_VERSION 0.1.0 +&&== env-fallback __BUILD_QUICK false + + ::// workspace / ... ::// execute / ... ::// clients / ... diff --git a/scripts/deploy.z-run b/scripts/deploy.z-run index e44097b..df9a055 100644 --- a/scripts/deploy.z-run +++ b/scripts/deploy.z-run @@ -41,7 +41,7 @@ test -d ./.publish/ - _build_version=0.1.0 + _build_version="${__BUILD_VERSION}" case "${_build_version}" in ( 0.0.0 | *.0 ) _build_release=false diff --git a/scripts/go.z-run b/scripts/go.z-run index 4ff2ffd..ed2d0fb 100644 --- a/scripts/go.z-run +++ b/scripts/go.z-run @@ -4,7 +4,7 @@ << go / build / all / release / quick - export -- _BUILD_QUICK=true + export -- __BUILD_QUICK=true "${ZRUN[@]}" ':: go / build / archiver / release' "${@}" "${ZRUN[@]}" ':: go / build / server / release' "${@}" "${ZRUN[@]}" ':: go / build / server-dummy / release' "${@}" @@ -32,7 +32,7 @@ << go / build / server / release / quick - export -- _BUILD_QUICK=true + export -- __BUILD_QUICK=true exec -- "${ZRUN[@]}" ':: go / build / server / release' "${@}" !! @@ -45,7 +45,7 @@ _flags=( -tags netgo ) - if test -z "${_BUILD_QUICK:-}" ; then + if test -z "${__BUILD_QUICK:-}" ; then _flags+=( -gcflags 'all=-l=4' -ldflags 'all=-s' @@ -86,7 +86,7 @@ << go / build / archiver / release / quick - export -- _BUILD_QUICK=true + export -- __BUILD_QUICK=true exec -- "${ZRUN[@]}" ':: go / build / archiver / release' "${@}" !! @@ -99,7 +99,7 @@ _flags=( -tags netgo ) - if test -z "${_BUILD_QUICK:-}" ; then + if test -z "${__BUILD_QUICK:-}" ; then _flags+=( -gcflags 'all=-l=4' -ldflags 'all=-s' @@ -182,7 +182,7 @@ << go / build / server-dummy / release / quick - export -- _BUILD_QUICK=true + export -- __BUILD_QUICK=true exec -- "${ZRUN[@]}" ':: go / build / server-dummy / release' "${@}" !! @@ -195,7 +195,7 @@ _flags=( -tags netgo ) - if test -z "${_BUILD_QUICK:-}" ; then + if test -z "${__BUILD_QUICK:-}" ; then _flags+=( -gcflags 'all=-l=4' -ldflags 'all=-s'