[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bashisms in our rules file



On Tue, May 11, 2004 at 10:59:02AM +0200, Frank K?ster wrote:
> Hi all,
> 
> as Andreas Metzler pointed out in 
> http://lists.debian.org/debian-mentors/2004/05/msg00122.html
> 
> (and in fact as bash's manpage says itself), brace expansion is a
> bashism. Thus, many other shells don't treat {} specially, and one gets: 
> 
> cp debian/config.{guess,sub} .
> cp: cannot stat `debian/config.{guess,sub}': No such file or directory
> 
> We have lots of such brace expansions in debian/rules of tetex-base and
> tetex-bin. I will fix those. In order to keep the files readable, I will
> substitute paths by variables ($(txmfdir) and the like) throughout the
> file (even were no brace expansion was, to get consistent).

Why not just do:

SHELL = /bin/bash

at the start of debian/rules?

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

        Julian Gilbey, website: http://www.polya.uklinux.net/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: