[hackers] [ubase] Makefile: make man pages with ubase VERSION || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 6 Feb 2015 16:16:28 +0100 (CET)

commit 363ac4676685a3e562656a0e5f16e6a5a02e0490
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Mon Feb 2 18:46:18 2015 +0100

    Makefile: make man pages with ubase VERSION

diff --git a/Makefile b/Makefile
index 0621eb5..608de1d 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -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)
 
Received on Fri Feb 06 2015 - 16:16:28 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 06 2015 - 16:24:14 CET