[scripts] Minor fixup.

This commit is contained in:
Ciprian Dorin Craciun 2022-09-02 14:43:15 +03:00
parent b6779259bc
commit 1f77fb7a1a

View file

@ -43,6 +43,7 @@
<< go / build / server / debug << go / build / server / debug
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/debug/kawipiko-server" ; then if test -e "${_outputs}/binaries/debug/kawipiko-server" ; then
rm -- "${_outputs}/binaries/debug/kawipiko-server" rm -- "${_outputs}/binaries/debug/kawipiko-server"
@ -66,6 +67,7 @@
<< go / build / server / release << go / build / server / release
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/release/kawipiko-server" ; then if test -e "${_outputs}/binaries/release/kawipiko-server" ; then
rm -- "${_outputs}/binaries/release/kawipiko-server" rm -- "${_outputs}/binaries/release/kawipiko-server"
@ -77,15 +79,16 @@
#? -buildmode exe #? -buildmode exe
) )
_gcflags=() _gcflags=()
_ldflags=( _ldflags=()
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
if test "${__BUILD_QUICK:-false}" != true ; then if test "${__BUILD_QUICK:-false}" != true ; then
_flags+=( -trimpath -a ) _flags+=( -trimpath -a )
_gcflags+=( 'all=-l=4' ) _gcflags+=( 'all=-l=4' )
_ldflags+=( 'all=-s' ) _ldflags+=( 'all=-s' )
fi fi
_ldflags+=(
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
_flags+=( _flags+=(
-tags "$( printf -- '%s,' "${_tags[@]}" )" -tags "$( printf -- '%s,' "${_tags[@]}" )"
-gcflags "$( printf -- '%s ' "${_gcflags[@]}" )" -gcflags "$( printf -- '%s ' "${_gcflags[@]}" )"
@ -107,6 +110,7 @@
<< go / build / archiver / debug << go / build / archiver / debug
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/debug/kawipiko-archiver" ; then if test -e "${_outputs}/binaries/debug/kawipiko-archiver" ; then
rm -- ${_outputs}/binaries/debug/kawipiko-archiver rm -- ${_outputs}/binaries/debug/kawipiko-archiver
@ -130,6 +134,7 @@
<< go / build / archiver / release << go / build / archiver / release
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/release/kawipiko-archiver" ; then if test -e "${_outputs}/binaries/release/kawipiko-archiver" ; then
rm -- "${_outputs}/binaries/release/kawipiko-archiver" rm -- "${_outputs}/binaries/release/kawipiko-archiver"
@ -141,15 +146,16 @@
#? -buildmode exe #? -buildmode exe
) )
_gcflags=() _gcflags=()
_ldflags=( _ldflags=()
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
if test "${__BUILD_QUICK:-false}" != true ; then if test "${__BUILD_QUICK:-false}" != true ; then
_flags+=( -trimpath -a ) _flags+=( -trimpath -a )
_gcflags+=( 'all=-l=4' ) _gcflags+=( 'all=-l=4' )
_ldflags+=( 'all=-s' ) _ldflags+=( 'all=-s' )
fi fi
_ldflags+=(
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
_flags+=( _flags+=(
-tags "$( printf -- '%s,' "${_tags[@]}" )" -tags "$( printf -- '%s,' "${_tags[@]}" )"
-gcflags "$( printf -- '%s ' "${_gcflags[@]}" )" -gcflags "$( printf -- '%s ' "${_gcflags[@]}" )"
@ -171,6 +177,7 @@
<< go / build / wrapper / debug << go / build / wrapper / debug
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/debug/kawipiko-wrapper" ; then if test -e "${_outputs}/binaries/debug/kawipiko-wrapper" ; then
rm -- "${_outputs}/binaries/debug/kawipiko-wrapper" rm -- "${_outputs}/binaries/debug/kawipiko-wrapper"
@ -194,6 +201,7 @@
<< go / build / wrapper / release << go / build / wrapper / release
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/release/kawipiko-wrapper" ; then if test -e "${_outputs}/binaries/release/kawipiko-wrapper" ; then
rm -- "${_outputs}/binaries/release/kawipiko-wrapper" rm -- "${_outputs}/binaries/release/kawipiko-wrapper"
@ -205,15 +213,16 @@
#? -buildmode exe #? -buildmode exe
) )
_gcflags=() _gcflags=()
_ldflags=( _ldflags=()
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
if test "${__BUILD_QUICK:-false}" != true ; then if test "${__BUILD_QUICK:-false}" != true ; then
_flags+=( -trimpath -a ) _flags+=( -trimpath -a )
_gcflags+=( 'all=-l=4' ) _gcflags+=( 'all=-l=4' )
_ldflags+=( 'all=-s' ) _ldflags+=( 'all=-s' )
fi fi
_ldflags+=(
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
_flags+=( _flags+=(
-tags "$( printf -- '%s,' "${_tags[@]}" )" -tags "$( printf -- '%s,' "${_tags[@]}" )"
-gcflags "$( printf -- '%s ' "${_gcflags[@]}" )" -gcflags "$( printf -- '%s ' "${_gcflags[@]}" )"
@ -235,6 +244,7 @@
<< go / build / server-dummy / debug << go / build / server-dummy / debug
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/debug/kawipiko-server-dummy" ; then if test -e "${_outputs}/binaries/debug/kawipiko-server-dummy" ; then
rm -- "${_outputs}/binaries/debug/kawipiko-server-dummy" rm -- "${_outputs}/binaries/debug/kawipiko-server-dummy"
@ -258,6 +268,7 @@
<< go / build / server-dummy / release << go / build / server-dummy / release
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
if test -e "${_outputs}/binaries/release/kawipiko-server-dummy" ; then if test -e "${_outputs}/binaries/release/kawipiko-server-dummy" ; then
rm -- "${_outputs}/binaries/release/kawipiko-server-dummy" rm -- "${_outputs}/binaries/release/kawipiko-server-dummy"
@ -269,15 +280,16 @@
#? -buildmode exe #? -buildmode exe
) )
_gcflags=() _gcflags=()
_ldflags=( _ldflags=()
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
if test "${__BUILD_QUICK:-false}" != true ; then if test "${__BUILD_QUICK:-false}" != true ; then
_flags+=( -trimpath -a ) _flags+=( -trimpath -a )
_gcflags+=( 'all=-l=4' ) _gcflags+=( 'all=-l=4' )
_ldflags+=( 'all=-s' ) _ldflags+=( 'all=-s' )
fi fi
_ldflags+=(
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
_flags+=( _flags+=(
-tags "$( printf -- '%s,' "${_tags[@]}" )" -tags "$( printf -- '%s,' "${_tags[@]}" )"
-gcflags "$( printf -- '%s ' "${_gcflags[@]}" )" -gcflags "$( printf -- '%s ' "${_gcflags[@]}" )"
@ -311,6 +323,7 @@
_component_0=all _component_0=all
fi fi
test "${#}" -eq 0 test "${#}" -eq 0
"${ZRUN[@]}" ':: sources / embedded / prepare'
_tags=( _tags=(
netgo netgo
) )
@ -318,15 +331,16 @@
#? -buildmode exe #? -buildmode exe
) )
_gcflags=() _gcflags=()
_ldflags=( _ldflags=()
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
if test "${__BUILD_QUICK:-false}" != true ; then if test "${__BUILD_QUICK:-false}" != true ; then
_flags+=( -trimpath -a ) _flags+=( -trimpath -a )
_gcflags+=( 'all=-l=4' ) _gcflags+=( 'all=-l=4' )
_ldflags+=( 'all=-s' ) _ldflags+=( 'all=-s' )
fi fi
_ldflags+=(
-X "github.com/volution/kawipiko/embedded.BUILD_TARGET=release"
-X "github.com/volution/kawipiko/embedded.BUILD_GIT_HASH=$( exec -- cat -- ./.outputs/markers/build-git-hash.txt )"
)
_flags+=( _flags+=(
-tags "$( printf -- '%s,' "${_tags[@]}" )" -tags "$( printf -- '%s,' "${_tags[@]}" )"
-gcflags "$( printf -- '%s ' "${_gcflags[@]}" )" -gcflags "$( printf -- '%s ' "${_gcflags[@]}" )"