mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
net-dns/AdGuardHome: Use [[ ... ]] instead of POSIX [ ... ]
as per the coding style guide: https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0101 change all instance of [ "$(go env GOARM)" != '' ] to [[ "$(go env GOARM)" != '' ]] The changes were generated using this command: ``` find -name '*.ebuild' -exec sed -i -E \ 's|([^[])\[+(\s+)([^]]+)(\s+)\]+([^]]\|$)|\1\[\[\2\3\4\]\]\5|g' \ {} \+ ``` this is aimed to be a series of commits meant to replace all instance of POSIX [ ... ] to bash's [[ ... ]], to make guru up to date with the coding style guide. this process is divided up into a series of commits in order to make review and testing more easy Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org> Part-of: https://codeberg.org/gentoo/guru/pulls/6 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
1 parent
4174328b2e
commit
9c24d32326
3 files changed
+6
-6
No files matched your search
@@ -59,10 +59,10 @@ src_compile() {
|
||||
local MY_LDFLAGS="-X github.com/AdguardTeam/AdGuardHome/internal/version.version=${PV}"
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.channel=release"
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.committime=$(date +%s)"
|
||||
if [ "$(go env GOARM)" != '' ]
|
||||
if [[ -n "$(go env GOARM)" ]]
|
||||
then
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.goarm=$(go env GOARM)"
|
||||
elif [ "$(go env GOMIPS)" != '' ]
|
||||
elif [[ -n "$(go env GOMIPS)" ]]
|
||||
then
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.gomips=$(go env GOMIPS)"
|
||||
fi
|
||||
|
||||
@@ -59,10 +59,10 @@ src_compile() {
|
||||
local MY_LDFLAGS="-X github.com/AdguardTeam/AdGuardHome/internal/version.version=${PV}"
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.channel=release"
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.committime=$(date +%s)"
|
||||
if [ "$(go env GOARM)" != '' ]
|
||||
if [[ -n "$(go env GOARM)" ]]
|
||||
then
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.goarm=$(go env GOARM)"
|
||||
elif [ "$(go env GOMIPS)" != '' ]
|
||||
elif [[ -n "$(go env GOMIPS)" ]]
|
||||
then
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.gomips=$(go env GOMIPS)"
|
||||
fi
|
||||
|
||||
@@ -59,10 +59,10 @@ src_compile() {
|
||||
local MY_LDFLAGS="-X github.com/AdguardTeam/AdGuardHome/internal/version.version=${PV}"
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.channel=release"
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.committime=$(date +%s)"
|
||||
if [ "$(go env GOARM)" != '' ]
|
||||
if [[ -n "$(go env GOARM)" ]]
|
||||
then
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.goarm=$(go env GOARM)"
|
||||
elif [ "$(go env GOMIPS)" != '' ]
|
||||
elif [[ -n "$(go env GOMIPS)" ]]
|
||||
then
|
||||
MY_LDFLAGS+=" -X github.com/AdguardTeam/AdGuardHome/internal/version.gomips=$(go env GOMIPS)"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user