Re: invoking shell script at post-extract

From: Milan Obuch <freebsd-ports_at_dino.sk>
Date: Wed, 14 Sep 2022 15:02:23 UTC
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