mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-09 16:07:07 +00:00
apkbuild-cpan: replace deprecated shell backticks
with $(...)
This commit is contained in:
parent
d1d805be40
commit
cca53fba63
@ -167,14 +167,14 @@ sub update_functions {
|
|||||||
$prepare_func = <<'EOF';
|
$prepare_func = <<'EOF';
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
perl Build.PL installdirs=vendor || return 1
|
perl Build.PL installdirs=vendor || return 1
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$build_func = <<'EOF';
|
$build_func = <<'EOF';
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
./Build && ./Build test
|
./Build && ./Build test
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@ -189,14 +189,14 @@ EOF
|
|||||||
$prepare_func = <<'EOF';
|
$prepare_func = <<'EOF';
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$build_func = <<'EOF';
|
$build_func = <<'EOF';
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
make && make test
|
make && make test
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user