Gentoo Archives: gentoo-dev

From: Greg KH <gregkh@g.o>
To: Christian Faulhammer <opfer@g.o>
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/stgit: ChangeLog stgit-0.14.ebuild
Date: Wed, 13 Feb 2008 17:38:55
Message-Id: 20080213173643.GE10733@kroah.com
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/stgit: ChangeLog stgit-0.14.ebuild by Christian Faulhammer
1 On Wed, Feb 13, 2008 at 06:05:01PM +0100, Christian Faulhammer wrote:
2 > Hi,
3 >
4 > "Greg Kroah-Hartman (gregkh)" <gregkh@g.o>:
5 > > src_install() {
6 > > sed -i -e 's-\(prefix:\) ~-\1 /usr-' setup.cfg
7 > > distutils_src_install
8 > > dodir /usr/share/doc/${PF}
9 > > mv ${D}/usr/share/${PN}/examples ${D}/usr/share/doc/${PF}
10 > > rmdir ${D}/usr/share/doc/${PN}
11 > > dobashcompletion contrib/stgit-completion.bash ${PN}
12 > > }
13 >
14 > Please watch your quotes for variables that can contain spaces, like
15 > ${D}.
16
17 Hey, I just bumped the ebuild, I didn't write the first one :)
18
19 So, what would be the correct fix here? Something like:
20 mv "${D}/usr/share/${PN}/examples" "${D}/usr/share/doc/${PF}"
21 rmdir "${D}/usr/share/doc/${PN}"
22
23 thanks,
24
25 greg k-h
26 --
27 gentoo-dev@l.g.o mailing list

Replies