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

Re: Best VCS layout for our packages?



Quoting Gianfranco Costamagna (2015-07-03 15:56:48)
> ./ghc/debian/rules:GHC=$(firstword $(shell bash -c "type -p ghc"))
> 
> this is something really obscure to me... why can't we just do 
> "GHC=$(which ghc)"

Variable expansion in debian/rules is not shell but make.

It can be simplified to eliminate bash like this:

  ./ghc/debian/rules:GHC := $($(shell which ghc)

(the change from = to := is to resolve once when read rahter than 
postpone and resolve each time the variable is used).


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: