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

Re: Writing get-orig-source targets to conform with policy



Il giorno Sun, 17 Feb 2008 11:02:21 -0500
Andres Mejia <mcitadel@gmail.com> ha scritto:

> On Sunday 17 February 2008 4:04:41 am Bas Wijnen wrote:
> > On Sun, Feb 17, 2008 at 02:39:03PM +0900, Emmet Hikory wrote:
> >
> > To find the path, $(dir $_)/script can be used, to make sure it works
> > from any directory.  (Attribution: I learned that from reading your
> > uscan invocation below. ;-) )
> 
> Thanks. This was exactly what I wanted to do. 
> 
> This had me stumped for a long time but now I'm free to use whatever
> scripting language I want and supply whatever options I want for the external
> scripts.
> 
> One thing though, the line could be written as "$(dir $_)script" since an 
> extra "/" is added at the end for "$(dir $_)". I tested this using
> "@echo $(dir $_)".

Why not using $(CURDIR)? It should give you the dir where debian/ is located
(i.e. $(CURDIR) == debian/../). I've always used it in my debian/rules files,
and never had any problem.

Kindly,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature


Reply to: