Re: invoking shell script at post-extract

From: Milan Obuch <freebsd-ports_at_dino.sk>
Date: Wed, 14 Sep 2022 14:25:11 UTC
On Wed, 14 Sep 2022 16:09:26 +0200
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
> - - -
> But it’s not invoked.
> 
> Any help apreciated,
> Axel
>

Why the '\' after post-extract: target? In port's Makefiles it is
not used. I did only quick check, not every Makefile :) but it may be
somehow the reason...

Another small thing to try is use ${.CURDIR}/files/home2l_packages.sh
or ${FILESDIR}/home2l_packages.sh just in case your script file is not
properly found.

And you can verify ${SH} is properly set with some 'echo ${SH}' command
somewhere...

Those are three things coming into mind seeing your snippet, maybe it
helps, maybe not.

Regards,
Milan