From nobody Wed Sep 14 15:02:23 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with UTF8SMTP id 4MSNp33Nlvz4cKKj for ; Wed, 14 Sep 2022 15:01:31 +0000 (UTC) (envelope-from freebsd-ports@dino.sk) Received: from cm0.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with UTF8SMTPS id 4MSNp15kDGz45gL for ; Wed, 14 Sep 2022 15:01:29 +0000 (UTC) (envelope-from freebsd-ports@dino.sk) Received: from zeta.dino.sk ([84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1.3,256bits,TLS_AES_256_GCM_SHA384) by cm0.netlabit.sk with ESMTPSA id 000000000115FEF5.000000006321ECC8.0001472F; Wed, 14 Sep 2022 17:01:28 +0200 Date: Wed, 14 Sep 2022 17:02:23 +0200 From: Milan Obuch 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> <74E4A1F6-5B14-49EC-A9C0-0C3BE0F0E27E@Chaos1.DE> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4MSNp15kDGz45gL X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-ports@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-ports@dino.sk X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[dino.sk]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 14 Sep 2022 16:45:44 +0200 Axel Rau wrote: > > Am 14.09.2022 um 16:11 schrieb Gleb Popov : > > > > On Wed, Sep 14, 2022 at 5:09 PM Axel Rau > > 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