Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2022 17:02:23 +0200
From:      Milan Obuch <freebsd-ports@dino.sk>
To:        ports@freebsd.org
Subject:   Re: invoking shell script at post-extract
Message-ID:  <20220914170223.32e6bf3a@zeta.dino.sk>
In-Reply-To: <74E4A1F6-5B14-49EC-A9C0-0C3BE0F0E27E@Chaos1.DE>
References:  <7B6895D9-0DA6-4B4C-B8B7-CAF6C4DF4473@Chaos1.DE> <CALH631nt=6MO7Zi-JmzZeJRtaCOqHt9sK9V2sP6a3WniDsyGzw@mail.gmail.com> <74E4A1F6-5B14-49EC-A9C0-0C3BE0F0E27E@Chaos1.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Sep 2022 16:45:44 +0200
Axel Rau <Axel.Rau@Chaos1.DE> wrote:

> > Am 14.09.2022 um 16:11 schrieb Gleb Popov <arrowd@freebsd.org>:
> > 
> > On Wed, Sep 14, 2022 at 5:09 PM Axel Rau <Axel.Rau@chaos1.de>
> > wrote:  
> >> 
> >> Hi all,
> >> 
> >> I have a shell script in files which installs a bunch of packages.
> >> Naively, I have tried:
> >> - - -
> >> post-extract: \
> >>            ${SH} files/home2l_packages.sh  
> > 
> > ${SH} ${PATCHDIR}/home2l_packages.sh
> >   
> Thanks, but this gives:
> - - -
> make: don't know how to make /home2l_packages.sh. Stop
> - - -
>

This looks like ${PATCHDIR} is not defined.

I think you should drop \, because effectively this means you are
writing

post-extract: ${SH} files/home2l_packages.sh

and in Makefile, what is before : is target, and what is after : is
dependecy list. In this case, your command is not invoked, it is being
evaluated as dependency list to check and build before target.

Regards,
Milan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220914170223.32e6bf3a>