ubase

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

commit 8c2bbb8fb32e539e384ad695c00a611ee93b8ae4
parent c0c562007432beccc5f68049a0fe9c7a9b25d045
Author: sin <sin@2f30.org>
Date:   Thu, 17 Oct 2013 11:41:48 +0100

Rename manpages to match the proper section

Install manpages to the right place, ensure their permissions
is set correctly.

Diffstat:
MMakefile | 20+++++++++++++++++---
Mclear.1 | 0
Mdf.1 | 0
Meject.1 | 0
Rhalt.1 -> halt.8 | 0
Rlsmod.1 -> lsmod.8 | 0
Rlsusb.1 -> lsusb.8 | 0
7 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -44,9 +44,19 @@ SRC = \ uptime.c \ watch.c +MAN1 = \ + chvt.1 \ + clear.1 \ + df.1 \ + eject.1 + +MAN8 = \ + halt.8 \ + lsmod.8 \ + lsusb.8 + OBJ = $(SRC:.c=.o) $(LIB) BIN = $(SRC:.c=) -MAN = $(SRC:.c=.1) all: options binlib @@ -83,8 +93,12 @@ install: all @cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN) @echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man1 @mkdir -p $(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) + @for m in $(MAN1); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done + @echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man8 + @mkdir -p $(DESTDIR)$(MANPREFIX)/man8 + @for m in $(MAN8); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man8/"$$m"; done + @chmod 644 $(DESTDIR)$(MANPREFIX)/man1/$(MAN1) + @chmod 644 $(DESTDIR)$(MANPREFIX)/man8/$(MAN8) uninstall: @echo removing executables from $(DESTDIR)$(PREFIX)/bin diff --git a/clear.1 b/clear.1 diff --git a/df.1 b/df.1 diff --git a/eject.1 b/eject.1 diff --git a/halt.1 b/halt.8 diff --git a/lsmod.1 b/lsmod.8 diff --git a/lsusb.1 b/lsusb.8