summaryrefslogtreecommitdiff
path: root/apkbuild-cpan.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-06-12 15:58:47 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-13 12:35:03 +0000
commitcca53fba632994c1218fd40970883781001d747d (patch)
treea534ce157a9465c21dd5cf89bfaf6d97fc124306 /apkbuild-cpan.in
parentd1d805be402f22b743e4804d9c67ebd3a9276d54 (diff)
downloadabuild-cca53fba632994c1218fd40970883781001d747d.tar.gz
abuild-cca53fba632994c1218fd40970883781001d747d.tar.bz2
abuild-cca53fba632994c1218fd40970883781001d747d.tar.xz
abuild-cca53fba632994c1218fd40970883781001d747d.zip
apkbuild-cpan: replace deprecated shell `backticks` with $(...)
Diffstat (limited to 'apkbuild-cpan.in')
-rw-r--r--apkbuild-cpan.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 3bda5df..2af8596 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -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