From f9319b3f9aa5646e1cdcfc81a9267d208a03f050 Mon Sep 17 00:00:00 2001 From: Piotr Semenov Date: Tue, 21 May 2024 20:28:38 +0400 Subject: [PATCH] fix: use GNU xargs instead of BSD version --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b50abdb..ad2486f 100644 --- a/Makefile +++ b/Makefile @@ -81,17 +81,17 @@ define get_gp_list <(echo '$(2)' | gp -fq | grep : | cut -d':' -f1 | $(3) tr ',' '\n') |\ sort |\ uniq |\ - xargs -I@ $(SHELL) -c 'echo -e \@"\n"' | xargs -n1 $(4) >> $@ + xargs -I@ $(SHELL) -c 'echo -e \@"\n"' | xargs $(4) >> $@ endef $(BUILD_DIR)gp_member_functions.tsv: - $(call get_gp_list,'Member','?.',,) + $(call get_gp_list,'Member','?.',,-n1) $(BUILD_DIR)gp_types.tsv: - $(call get_gp_list,'Type','\\t',tail -n+2 |,) + $(call get_gp_list,'Type','\\t',tail -n+2 |,-n1) $(BUILD_DIR)gp_support_commands.tsv: - $(call get_gp_list,'MetaCommand','?\\',tail -n+3 | cut -d'{' -f1 |,-I@ echo '\@') + $(call get_gp_list,'MetaCommand','?\\',tail -n+4 | cut -d'{' -f1 | cut -d' ' -f1 |,-I@ echo '\@') GP_ITEMS := commands member_functions types support_commands $(BUILD_DIR)gp_builtins.json: $(foreach item,$(GP_ITEMS),$(BUILD_DIR)gp_$(item).tsv)