Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Donnie Berkholz <dberkholz@g.o>, "Hans de Graaff (graaff)" <graaff@g.o>
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: xemacs-elisp-common.eclass xemacs-elisp.eclass
Date: Sat, 15 Sep 2007 10:06:09
Message-Id: 200709150556.03684.vapier@gentoo.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: xemacs-elisp-common.eclass xemacs-elisp.eclass by Donnie Berkholz
1 On Saturday 15 September 2007, Donnie Berkholz wrote:
2 > On 07:19 Sat 15 Sep , Hans de Graaff (graaff) wrote:
3 > > SITEPACKAGE=/usr/lib/xemacs/site-packages
4 >
5 > Is using get_libdir() a concern here?
6
7 looks it to me
8
9 > > xemacs-elisp-compile () {
10 > > ${XEMACS_BATCH_CLEAN} -f batch-byte-compile "$@"
11 > > xemacs-elisp-make-autoload-file "$@"
12 > > }
13 > >
14 > > xemacs-elisp-install () {
15 > > local subdir="$1"
16 > > shift
17 > > ( # use sub-shell to avoid possible environment polution
18 > > dodir "${SITEPACKAGE}"/lisp/"${subdir}"
19 > > insinto "${SITEPACKAGE}"/lisp/"${subdir}"
20 > > doins "$@"
21 > > ) || die "Installing lisp files failed"
22 > > }
23 >
24 > The lack of parallels between these two functions bothers me. One dies
25 > and the other doesn't, which makes later code using them look wrong. It
26 > would be neater to die in both of these functions.
27 >
28 > Also, try using { } around a block of code instead of ( ), which creates
29 > a subshell.
30
31 erm, what ? () is a subshell, {} is a list of grouped commands ...
32 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies