commit 36afa1e1696e4f08ad10d29487bc10366beb57b1
parent 428cd4fe842b87a5504e44b1f92cf30e1ed8a48f
Author: sin <sin@2f30.org>
Date: Sun, 29 Sep 2013 12:38:12 +0100
Replace VERSION in manpages with the actual version
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -123,7 +123,7 @@ install: all
@cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN)
@echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man1
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
- @cp -f $(MAN) $(DESTDIR)$(MANPREFIX)/man1
+ @for m in $(MAN); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
@cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN)
uninstall: