[hackers] [sbase] Replace VERSION in manpages with the actual version || sin

From: <git_AT_suckless.org>
Date: Sat, 05 Oct 2013 16:29:23 +0200

commit 36afa1e1696e4f08ad10d29487bc10366beb57b1
Author: sin <sin_AT_2f30.org>
Date: Sun Sep 29 12:38:12 2013 +0100

    Replace VERSION in manpages with the actual version

diff --git a/Makefile b/Makefile
index 144865c..d7246ad 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -123,7 +123,7 @@ install: all
         _AT_cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN)
         _AT_echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man1
         _AT_mkdir -p $(DESTDIR)$(MANPREFIX)/man1
- _AT_cp -f $(MAN) $(DESTDIR)$(MANPREFIX)/man1
+ _AT_for m in $(MAN); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
         _AT_cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN)
 
 uninstall:
Received on Sat Oct 05 2013 - 16:29:23 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 05 2013 - 16:36:29 CEST