[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
|
#!/dev/null
|
||||||
|
|
||||||
|
|
||||||
|
&&== env-fallback __BUILD_VERSION 0.1.0
|
||||||
|
&&== env-fallback __BUILD_QUICK false
|
||||||
|
|
||||||
|
|
||||||
::// workspace / ...
|
::// workspace / ...
|
||||||
::// execute / ...
|
::// execute / ...
|
||||||
::// clients / ...
|
::// clients / ...
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
test -d ./.publish/
|
test -d ./.publish/
|
||||||
|
|
||||||
|
|
||||||
_build_version=0.1.0
|
_build_version="${__BUILD_VERSION}"
|
||||||
case "${_build_version}" in
|
case "${_build_version}" in
|
||||||
( 0.0.0 | *.0 )
|
( 0.0.0 | *.0 )
|
||||||
_build_release=false
|
_build_release=false
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
<< go / build / all / release / quick
|
<< go / build / all / release / quick
|
||||||
export -- _BUILD_QUICK=true
|
export -- __BUILD_QUICK=true
|
||||||
"${ZRUN[@]}" ':: go / build / archiver / release' "${@}"
|
"${ZRUN[@]}" ':: go / build / archiver / release' "${@}"
|
||||||
"${ZRUN[@]}" ':: go / build / server / release' "${@}"
|
"${ZRUN[@]}" ':: go / build / server / release' "${@}"
|
||||||
"${ZRUN[@]}" ':: go / build / server-dummy / release' "${@}"
|
"${ZRUN[@]}" ':: go / build / server-dummy / release' "${@}"
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
|
|
||||||
<< go / build / server / release / quick
|
<< go / build / server / release / quick
|
||||||
export -- _BUILD_QUICK=true
|
export -- __BUILD_QUICK=true
|
||||||
exec -- "${ZRUN[@]}" ':: go / build / server / release' "${@}"
|
exec -- "${ZRUN[@]}" ':: go / build / server / release' "${@}"
|
||||||
!!
|
!!
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
_flags=(
|
_flags=(
|
||||||
-tags netgo
|
-tags netgo
|
||||||
)
|
)
|
||||||
if test -z "${_BUILD_QUICK:-}" ; then
|
if test -z "${__BUILD_QUICK:-}" ; then
|
||||||
_flags+=(
|
_flags+=(
|
||||||
-gcflags 'all=-l=4'
|
-gcflags 'all=-l=4'
|
||||||
-ldflags 'all=-s'
|
-ldflags 'all=-s'
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
|
|
||||||
<< go / build / archiver / release / quick
|
<< go / build / archiver / release / quick
|
||||||
export -- _BUILD_QUICK=true
|
export -- __BUILD_QUICK=true
|
||||||
exec -- "${ZRUN[@]}" ':: go / build / archiver / release' "${@}"
|
exec -- "${ZRUN[@]}" ':: go / build / archiver / release' "${@}"
|
||||||
!!
|
!!
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
_flags=(
|
_flags=(
|
||||||
-tags netgo
|
-tags netgo
|
||||||
)
|
)
|
||||||
if test -z "${_BUILD_QUICK:-}" ; then
|
if test -z "${__BUILD_QUICK:-}" ; then
|
||||||
_flags+=(
|
_flags+=(
|
||||||
-gcflags 'all=-l=4'
|
-gcflags 'all=-l=4'
|
||||||
-ldflags 'all=-s'
|
-ldflags 'all=-s'
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
|
|
||||||
|
|
||||||
<< go / build / server-dummy / release / quick
|
<< go / build / server-dummy / release / quick
|
||||||
export -- _BUILD_QUICK=true
|
export -- __BUILD_QUICK=true
|
||||||
exec -- "${ZRUN[@]}" ':: go / build / server-dummy / release' "${@}"
|
exec -- "${ZRUN[@]}" ':: go / build / server-dummy / release' "${@}"
|
||||||
!!
|
!!
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
_flags=(
|
_flags=(
|
||||||
-tags netgo
|
-tags netgo
|
||||||
)
|
)
|
||||||
if test -z "${_BUILD_QUICK:-}" ; then
|
if test -z "${__BUILD_QUICK:-}" ; then
|
||||||
_flags+=(
|
_flags+=(
|
||||||
-gcflags 'all=-l=4'
|
-gcflags 'all=-l=4'
|
||||||
-ldflags 'all=-s'
|
-ldflags 'all=-s'
|
||||||
|
|
Loading…
Reference in a new issue