Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: reavertm@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH autotools-utils 2/9] Strip ${D} from removal message to shorten it.
Date: Tue, 13 Sep 2011 14:13:10
Message-Id: 1315923033-23397-2-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH autotools-utils 1/9] Fix handling whitespace in filenames when looking for .la files. by "Michał Górny"
1 ---
2 eclass/autotools-utils.eclass | 4 ++--
3 1 files changed, 2 insertions(+), 2 deletions(-)
4
5 diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
6 index 8bc365d..31d228b 100644
7 --- a/eclass/autotools-utils.eclass
8 +++ b/eclass/autotools-utils.eclass
9 @@ -151,7 +151,7 @@ remove_libtool_files() {
10 local shouldnotlink=$(sed -ne '/^shouldnotlink=yes$/p' "${f}")
11 if [[ "$1" == 'all' || -z ${shouldnotlink} ]]; then
12 if [[ "$1" != 'none' ]]; then
13 - einfo "Removing unnecessary ${f}"
14 + einfo "Removing unnecessary ${f#${D%/}}"
15 rm -f "${f}"
16 fi
17 fi
18 @@ -159,7 +159,7 @@ remove_libtool_files() {
19 if [[ -n ${shouldnotlink} ]]; then
20 local remove=${f/%.la/.a}
21 [[ "${f}" != "${remove}" ]] || die 'regex sanity check failed'
22 - einfo "Removing unnecessary ${remove}"
23 + einfo "Removing unnecessary ${remove#${D%/}}"
24 rm -f "${remove}"
25 fi
26 done
27 --
28 1.7.6.1