From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20210301103410.32477-1-rhi@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Fri, 05 Mar 2021 08:26:16 +0100 Subject: Re: [ptxdist] [APPLIED] ptxd_make_world_lint: fail gracefully if 'diffstat' is not installed List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber Thanks, applied as 642d4847a7bedc9a5df1a66807ba89a50bc45264. Michael [sent from post-receive hook] On Fri, 05 Mar 2021 08:26:16 +0100, Roland Hieber wrote: > Signed-off-by: Roland Hieber > Message-Id: <20210301103410.32477-1-rhi@pengutronix.de> > [mol: use echo and add extra newline] > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_make_world_lint.sh b/scripts/lib/ptxd_make_world_lint.sh > index 65fdd3b72e5e..3d0e20213dd0 100644 > --- a/scripts/lib/ptxd_make_world_lint.sh > +++ b/scripts/lib/ptxd_make_world_lint.sh > @@ -151,6 +151,13 @@ ptxd_make_world_lint_autogen() { > local dir fd file need_autogen > > echo "Checking for missing autogen.sh ..." > + > + if [ -z "$(type -t diffstat)" ]; then > + echo "'diffstat' not found, skipping checks for missing autogen.sh" > + echo > + return > + fi > + > for dir in ${ptx_patch_dir_all}; do > need_autogen= > exec {fd}< <(find "${dir}" -type f ! -name autogen.sh ! -name series) _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de