commit:     9716aae78b821f26f3b820d838cec65d0b73c408
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 11 01:09:20 2015 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Dec 11 01:09:20 2015 +0000
URL:        https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=9716aae7

Use AC_PROG_MKDIR_P macro/variable instead of "mkdir -p".

 configure.ac       | 1 +
 src/php.eselect.in | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d892d13..aa7bf70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,6 +2,7 @@ AC_INIT([eselect-php], [0.8.1])
 AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
 
 AC_PROG_LN_S
+AC_PROG_MKDIR_P
 AC_PROG_SED
 AC_PATH_PROG(SORT,sort)
 AC_PATH_PROG(UNIQ,uniq)

diff --git a/src/php.eselect.in b/src/php.eselect.in
index aa8ad68..7e918ab 100644
--- a/src/php.eselect.in
+++ b/src/php.eselect.in
@@ -227,7 +227,7 @@ write_mod_php_conf() {
        local conf_dir="${EROOT}"/var/lib/eselect-php
        local conf_path="${conf_dir}/mod_php.conf"
 
-       mkdir -p "${conf_dir}" || die "failed to create ${conf_dir}"
+       @MKDIR_P@ "${conf_dir}" || die "failed to create ${conf_dir}"
 
        # Parse the major version (for example "5" or "7") out of the
        # target name.

Reply via email to