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

Re: Using Makefile for copy files into a package



Hello,

I'm trying install the scripts before run the preinst.
In the first line in my preinst i put this line:

install -m 755 debian/scripts-bd/script.sh /opt

But when the package is ready (after
dpk-buildpackage). 

And i do : dpkg -i package.deb

The installation begin, but the first line isn't
executed. 

It's happen because the directory is /root.
I saw the /root/ using pwd. Still the package never
found the base debian/

Best regards,

Faria


--- Hendrik Sattler <debian@hendrik-sattler.de>
escreveu:

> Am Donnerstag 11 Januar 2007 13:03 schrieb Lars
> Wirzenius:
> > On to, 2007-01-11 at 10:45 +0000, Rodrigo Tavares
> wrote:
> > > I set in my makefile:
> > > package = mypackage
> > > install -m 755 debian/scripts-bd/script.sh
> > > $$packagename/opt/
> >
> > If those are two successive lines of commands for
> a target in a
> > Makefile, then it won't work like that. Every line
> is executed as a
> > separate process, and any environment variables
> you set in the first
> > line will disappear before the second line is
> executed. You need to
> > combine them into a single shell command line for
> it to work. Or you can
> > use make variable. Alternatively, the problem may
> be that you set the
> > variable "package", but refer to "packagename". As
> a third option, it
> > might be that you set the variable as a make
> variable (the spaces around
> > the equals sign indicate that), but refer to it as
> an environment
> > variable (the double dollar sign); the correct way
> to refer to a make
> > variable is $(package).
> 
> And he wants to run the script in preinst which runs
> before the files are 
> installed (?!)
> 
> HS
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-devel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 


__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 



Reply to: