bug in Makefile?

Bernhard Reiter bernhard@intevation.de
Mon, 11 Mar 2002 19:21:00 +0100


--mYCpIKhGyMATD0i+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 11, 2002 at 01:12:39PM +0100, Carleos Artime Fi wrote:
> Hi. In statist-1.0.1, tests/Makefile, this line appears:
>=20
> 	test -z "$(CLEANFILES)" || rm $(CLEANFILES)
>=20
> which, in my Debian 2.2r5 produces an error, because "test" returns 1 if
> true and 0 if false, and "bash" executes the command after || if
> success (0) and does not if failed (not 0).

The rm will be executed when the "$(CLEANFILES)" is not empty.
This seem to be correct to me.

In my bash I can try the following:

   test -z hi || echo hi
hi
   test -z || echo ho


This is because test -z returns 0 if the string is empty.
Hmm no idea why this would produce an error.

> On the other hand, I would like to know if there has been any attempt to
> build a Debian package of "statist" (a .deb file). Anybody knows?

I am not aware of debian packaging attempts.
It would be appreciated, though.  :)

	Bernhard

--mYCpIKhGyMATD0i+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iEYEARECAAYFAjyM9YwACgkQh9ag3dpKERa3KQCfWnGwNJ+DkwLMy/a46iQ9P6RV
vJYAoOB/xum9RNxNjY7PuuDGIRg78K7d
=X+/C
-----END PGP SIGNATURE-----

--mYCpIKhGyMATD0i+--