public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org, lack@gentoo.org
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in rox-base/rox-clib: ChangeLog rox-clib-2.1.10.ebuild
Date: Thu, 6 Dec 2007 15:46:54 -0800	[thread overview]
Message-ID: <20071206234654.GW29076@supernova> (raw)
In-Reply-To: <E1J0J2N-0002lC-4B@stork.gentoo.org>

On 15:53 Thu 06 Dec     , Jim Ramsay (lack) wrote:
> 1.1                  rox-base/rox-clib/rox-clib-2.1.10.ebuild
> 
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.10.ebuild?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.10.ebuild?rev=1.1&content-type=text/plain

> src_install() {
> 	local baselibdir="/usr/$(get_libdir)"
> 	local NATIVE_FEED_DIR="/usr/share/0install.net/native_feeds"
> 	local ICON_CACHE_DIR="/var/cache/0install.net/interface_icons"
> 
> 	#  clean up source instead of remove it!
> 	( cd src && make clean )
> 
> 	# remove silly .cvs files
> 	find . -name '.cvs*' | xargs rm -f >/dev/null 2>&1
> 	dodoc ${baselibdir}/${APPNAME}
> 	dodir ${baselibdir}/${APPNAME}
> 	cp -r . "${D}${baselibdir}/${APPNAME}"
> 	(
> 		cd Help
> 		dodoc Authors Changes ToDo README Versions
> 	)

Instead of these subshells to save the original directory, a more common 
technique is pushd/popd. Another possibility is 'cd foo; stuff; cd -', 
but that doesn't stack.

> 	0distutils ROX-CLib.xml > tmp.native_feed || die "0distutilss feed edit failed"
> 	insinto "${baselibdir}/ROX-CLib/"
> 	newins tmp.native_feed ROX-CLib.xml
> 
> 	local feedname
> 	feedname=$(0distutils -e tmp.native_feed) || "0distutils URI escape failed"
> 	dosym "${baselibdir}/ROX-CLib/ROX-CLib.xml" "${NATIVE_FEED_DIR}/${feedname}"
> 
> 	local cachedname
> 	cachedname=$(0distutils -c tmp.native_feed) || "0distutils URI escape failed"
> 	dosym "${baselibdir}/ROX-CLib/.DirIcon" "${ICON_CACHE_DIR}/${cachedname}"
> 
> }

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



       reply	other threads:[~2007-12-06 23:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1J0J2N-0002lC-4B@stork.gentoo.org>
2007-12-06 23:46 ` Donnie Berkholz [this message]
2007-12-07 15:16   ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in rox-base/rox-clib: ChangeLog rox-clib-2.1.10.ebuild Jim Ramsay
2007-12-09  7:19     ` Donnie Berkholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071206234654.GW29076@supernova \
    --to=dberkholz@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=lack@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox