mirror of
https://src.koozali.org/smeserver/common.git
synced 2024-12-22 01:56:59 +01:00
cater for multiple %version in name
This commit is contained in:
parent
8ef57bb0be
commit
796068c9c1
@ -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)/g" -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)/g" | xargs basename)
|
||||
|
||||
# default target: just make sure we've got the sources
|
||||
all: sources
|
||||
|
Loading…
Reference in New Issue
Block a user