ubase

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

commit b39ad7dd6af90d69d699a2af6219a3a2bf0201c9
parent f594c1f8181bd56fe1b66d1c19228cd13dd69e0f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon,  2 Feb 2015 18:46:18 +0100

Makefile: make man pages with ubase VERSION

Diffstat:
Makefile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -166,9 +166,9 @@ install: all cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN) mkdir -p $(DESTDIR)$(MANPREFIX)/man1 - for m in $(MAN1); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done + for m in $(MAN1); do sed "s/^\.Os ubase/.Os ubase $(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done mkdir -p $(DESTDIR)$(MANPREFIX)/man8 - for m in $(MAN8); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man8/"$$m"; done + for m in $(MAN8); do sed "s/^\.Os ubase/.Os ubase $(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man8/"$$m"; done cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN1) cd $(DESTDIR)$(MANPREFIX)/man8 && chmod 644 $(MAN8)