Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/eselect-php:master commit in: src/
Date: Fri, 11 Dec 2015 00:40:36
Message-Id: 1449786569.064b605e2bda578b8480b391484be52b0dd9222d.mjo@gentoo
1 commit: 064b605e2bda578b8480b391484be52b0dd9222d
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 10 22:29:29 2015 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 10 22:29:29 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=064b605e
7
8 Clean up error/info messages and quoting in the set_* functions.
9
10 src/php.eselect.in | 24 ++++++++++++------------
11 1 file changed, 12 insertions(+), 12 deletions(-)
12
13 diff --git a/src/php.eselect.in b/src/php.eselect.in
14 index 4de770f..14ba819 100644
15 --- a/src/php.eselect.in
16 +++ b/src/php.eselect.in
17 @@ -289,34 +289,34 @@ set_apache2() {
18 "${EROOT}${libdir}/apache2/modules/" || \
19 die -q "Failed to set symlink for ${EPREFIX}${libdir}/apache2/modules/libphp${t:3:1}.so"
20 done
21 - echo "You have to run \`${EPREFIX}/etc/init.d/apache2 restart' for the changes to take effect"
22 + echo "Please restart apache for the changes to take effect."
23 }
24
25 set_cli() {
26 local file libdir t=$(resolv_target cli $1)
27 - [[ -z $t ]] && die -q "Bad target"
28 + [[ -z $t ]] && die -q "invalid target"
29 for file in php phpize php-config; do
30 - @LN_S@ --force ../..$(get_active_libdir)/$t/bin/$file \
31 - "${EROOT}"/usr/bin/$file || \
32 - die -q "Failed to create symlink for ${file}"
33 + @LN_S@ --force "../..$(get_active_libdir)/${t}/bin/${file}" \
34 + "${EROOT}/usr/bin/${file}" || \
35 + die -q "failed to create active ${file} symlink"
36 done
37 }
38
39 set_cgi() {
40 t=$(resolv_target cgi $1)
41 - [[ -z $t ]] && die -q "Bad target"
42 - @LN_S@ --force ../..$(get_active_libdir)/$t/bin/php-cgi \
43 + [[ -z $t ]] && die -q "invalid target"
44 + @LN_S@ --force "../..$(get_active_libdir)/${t}/bin/php-cgi" \
45 "${EROOT}"/usr/bin/php-cgi || \
46 - die -q "Failed to create symlink for php-cgi"
47 + die -q "failed to create active php-cgi symlink"
48 }
49
50 set_fpm() {
51 local t=$(resolv_target fpm $1)
52 - [[ -z $t ]] && die -q "Bad target"
53 - @LN_S@ --force ../..$(get_active_libdir)/$t/bin/php-fpm \
54 + [[ -z $t ]] && die -q "invalid target"
55 + @LN_S@ --force "../..$(get_active_libdir)/${t}/bin/php-fpm" \
56 "${EROOT}"/usr/bin/php-fpm || \
57 - die -q "Failed to create symlink for the php-fpm binary"
58 - echo "You have to run \`${EPREFIX}/etc/init.d/php-fpm restart' for the changes to take effect"
59 + die -q "failed to create symlink for the php-fpm binary"
60 + echo "Please restart php-fpm for the changes to take effect."
61 }
62 ## set action