From afdbf44e23161a19373d6dd58ae3caf6d33c5a86 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Thu, 13 Oct 2016 10:23:18 -0400 Subject: [PATCH] make: Sed needs g option to replace multiple PROGRAM names --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f180a6b9..f266bbff 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,7 @@ $(SRPM): $(SPEC) $(SOURCE) $(SPEC): rpmbuild/ spec.in @echo Running templater... #cat spec.in > $(SPEC) - sed -e s/__PROGRAM__/$(PROGRAM)/ -e s/__VERSION__/$(VERSION)/ -e s/__RELEASE__/$(RELEASE)/ < spec.in > $(SPEC) + sed -e s/__PROGRAM__/$(PROGRAM)/g -e s/__VERSION__/$(VERSION)/g -e s/__RELEASE__/$(RELEASE)/g < spec.in > $(SPEC) # append a changelog to the .spec file git log --format="* %cd %aN <%aE>%n- (%h) %s%d%n" --date=local | sed -r 's/[0-9]+:[0-9]+:[0-9]+ //' >> $(SPEC)