summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-10-30 20:24:09 +0000
committerMichał Górny <mgorny@gentoo.org>2012-10-30 20:24:09 +0000
commit3481bed3a59dc8950488a4d0cae3aabcda6fb90d (patch)
treebcca30eb14770e47c1c128b66e54a79a8009eb7c /eclass
parentAdd OpenJDK 7-b4 for ppc-macos (diff)
downloadgentoo-2-3481bed3a59dc8950488a4d0cae3aabcda6fb90d.tar.gz
gentoo-2-3481bed3a59dc8950488a4d0cae3aabcda6fb90d.tar.bz2
gentoo-2-3481bed3a59dc8950488a4d0cae3aabcda6fb90d.zip
Replace "echo -n" with "echo", bash removes trailing newline in subshells anyway.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/systemd.eclass8
2 files changed, 9 insertions, 5 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index a6d0248743ce..0cd68e6ade45 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.485 2012/10/30 17:22:33 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.486 2012/10/30 20:24:09 mgorny Exp $
+
+ 30 Oct 2012; Michał Górny <mgorny@gentoo.org> systemd.eclass:
+ Replace "echo -n" with "echo", bash removes trailing newline in subshells
+ anyway.
30 Oct 2012; Michał Górny <mgorny@gentoo.org> python-distutils-ng.eclass:
Fix Prefix support, wrt bug #423323.
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 0f1dab53f034..d5da09cddbf0 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.15 2012/09/27 16:35:42 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.16 2012/10/30 20:24:09 mgorny Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -35,7 +35,7 @@ esac
# @DESCRIPTION:
# Get unprefixed unitdir.
_systemd_get_unitdir() {
- echo -n /usr/lib/systemd/system
+ echo /usr/lib/systemd/system
}
# @FUNCTION: systemd_get_unitdir
@@ -46,7 +46,7 @@ systemd_get_unitdir() {
has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
debug-print-function ${FUNCNAME} "${@}"
- echo -n "${EPREFIX}$(_systemd_get_unitdir)"
+ echo "${EPREFIX}$(_systemd_get_unitdir)"
}
# @FUNCTION: systemd_dounit
@@ -149,7 +149,7 @@ systemd_with_unitdir() {
debug-print-function ${FUNCNAME} "${@}"
local optname=${1:-systemdsystemunitdir}
- echo -n --with-${optname}="$(systemd_get_unitdir)"
+ echo --with-${optname}="$(systemd_get_unitdir)"
}
# @FUNCTION: systemd_to_myeconfargs