apkbuild-cpan: replace deprecated shell `backticks` with $(...)

This commit is contained in:
Jakub Jirutka 2016-06-12 15:58:47 +02:00 committed by Natanael Copa
parent d1d805be40
commit cca53fba63
1 changed files with 4 additions and 4 deletions

View File

@ -167,14 +167,14 @@ sub update_functions {
$prepare_func = <<'EOF';
prepare() {
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
}
EOF
$build_func = <<'EOF';
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build && ./Build test
}
EOF
@ -189,14 +189,14 @@ EOF
$prepare_func = <<'EOF';
prepare() {
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
}
EOF
$build_func = <<'EOF';
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
EOF