Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Cc: James Le Cuirot <chewi@g.o>
Subject: [gentoo-dev] [PATCH 02/14] cdrom.eclass: Simplify printing of CD_ROOT_# variable names
Date: Mon, 17 Apr 2017 21:55:25
Message-Id: 20170417215359.30641-3-chewi@gentoo.org
In Reply to: [gentoo-dev] [PATCH] cdrom.eclass: Near rewrite by James Le Cuirot
1 ---
2 eclass/cdrom.eclass | 7 +------
3 1 file changed, 1 insertion(+), 6 deletions(-)
4
5 diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
6 index de72f15563db..f1839b189ae9 100644
7 --- a/eclass/cdrom.eclass
8 +++ b/eclass/cdrom.eclass
9 @@ -122,12 +122,7 @@ cdrom_get_cds() {
10 einfo "If you do not have the CDs, but have the data files"
11 einfo "mounted somewhere on your filesystem, just export"
12 einfo "the following variables so they point to the right place:"
13 - einfon ""
14 - cdcnt=0
15 - while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; do
16 - ((++cdcnt))
17 - echo -n " CD_ROOT_${cdcnt}"
18 - done
19 + einfo $(printf "CD_ROOT_%d " $(seq ${#}))
20 echo
21 einfo "Or, if you have all the files in the same place, or"
22 einfo "you only have one cdrom, you can export CD_ROOT"
23 --
24 2.11.0