[Pkg-octave-devel] r1545 - in octave-pkg-dev/trunk: . debian

Rafael Laboissiere rafael at debian.org
Mon Mar 31 20:20:37 UTC 2008


* Thomas Weber <thomas.weber.mail at gmail.com> [2008-03-31 21:32]:

> On 31/03/08 16:01 +0000, Rafael Laboissiere wrote:
> > Author: rafael
> > Date: 2008-03-31 16:01:04 +0000 (Mon, 31 Mar 2008)
> > New Revision: 1545
> > 
> > Modified:
> >    octave-pkg-dev/trunk/debian/changelog
> >    octave-pkg-dev/trunk/octave-pkg.mk.in
> > Log:
> > Avoid make failures if files PKG_ADD and/or PKG_ADD.bak do not exist
> >  install-pkg:
> > -	[ -e PKG_ADD ] && mv PKG_ADD PKG_ADD.bak
> > +	[ -e PKG_ADD ] && mv PKG_ADD PKG_ADD.bak || true
> 
> I thought bash evaluates from left to right?

Yes.

> I.e., if PKG_ADD doesn't exist, the "mv" command should not be executed?

Yes, and then the whole command fails, what makes debian/rules fail and the
compilation stops.

I think it is better to use the "-" character at the beginning of the
command, it is more "makefile-like".  I will do it.

-- 
Rafael




More information about the Pkg-octave-devel mailing list