From 8ef57bb0be7ea9c36dfa7c17aecefa0e8b167d39 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Fri, 14 Jul 2023 18:18:21 +1000 Subject: [PATCH] cater for multiple name params in source --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 05b4752..8116185 100644 --- a/Makefile.common +++ b/Makefile.common @@ -98,7 +98,7 @@ EXT := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | head -n 1 | sed 's/Sou #else #ARCHIVEFILE := $(shell cat archivefilename) #endif -ARCHIVEFILE := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | sed -e 's/{//g' -e 's/}//g' -e "s/%name/$(NAME)/" -e "s/%version/$(VERSION)/" | xargs basename) +ARCHIVEFILE := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | sed -e 's/{//g' -e 's/}//g' -e "s/%name/$(NAME)/g" -e "s/%version/$(VERSION)/" | xargs basename) # default target: just make sure we've got the sources all: sources