ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit 83390f489347788a9494f770f70788c6fc2399d7
parent 921631a3a965ad1cdd44796100494770e538f402
Author: sin <sin@2f30.org>
Date:   Sun, 29 Sep 2013 12:38:12 +0100

Replace VERSION in manpages with the actual version

Diffstat:
MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -84,7 +84,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: