Gentoo Archives: gentoo-dev

From: "Tomáš Chvátal" <scarabeus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] New eclass for x11 packages
Date: Thu, 18 Feb 2010 23:21:37
Message-Id: 4B7DCB51.3050505@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] New eclass for x11 packages by "Tomáš Chvátal"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 >> [[ -e "./configure.ac" ]] && eautoreconf || ewarn "Unable to autoreconf
5 >> the configure script. Things may fail."
6 >
7 >> That'll ewarn if configure.ac doesn't exist at all. Doesn't eautoreconf die
8 >> anyway if it fails, and if not, is it a good idea for failures to only give a
9 >> warning?
10 >
11 > That || die is not for eautoreconf
12 >
13 > [[ -e "something" ]] && somethingexists || somethingisnotexisting
14 >
15 > For your behaviour it would have to look like this
16 >
17 > [[ -e "something" ]] && { somethingexists || die if the commands failed ; }
18 >
19 Mea culpa,
20 now I see you ask if I should not die if that configure.ac is not found.
21 Well the issue is that things Might fail, not 100% fail :] and it is for
22 prefix only so we can update behaviour for it later to be more strict.
23
24 Tomas
25 -----BEGIN PGP SIGNATURE-----
26 Version: GnuPG v2.0.14 (GNU/Linux)
27 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
28
29 iEYEARECAAYFAkt9y1EACgkQHB6c3gNBRYdkqQCgpCsvS1tJQbeP7sZaxP9xNn1m
30 ogsAoIrPbn8ilxnTd5oXT77lSXsju0g4
31 =4/mJ
32 -----END PGP SIGNATURE-----