[scripts] Minor updates.
This commit is contained in:
parent
c949296990
commit
65b0ab5fe6
3 changed files with 12 additions and 8 deletions
|
@ -1,6 +1,10 @@
|
|||
#!/dev/null
|
||||
|
||||
|
||||
&&== env-fallback __BUILD_VERSION 0.1.0
|
||||
&&== env-fallback __BUILD_QUICK false
|
||||
|
||||
|
||||
::// workspace / ...
|
||||
::// execute / ...
|
||||
::// clients / ...
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue