ubase

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

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

Rename manpages to match the proper section

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

Diffstat:
Makefile | 20+++++++++++++++++---
clear.1 | 0
df.1 | 0
eject.1 | 0
halt.1 | 16----------------
halt.8 | 16++++++++++++++++
lsmod.1 | 7-------
lsmod.8 | 7+++++++
lsusb.1 | 7-------
lsusb.8 | 7+++++++
10 files changed, 47 insertions(+), 33 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.1 @@ -1,16 +0,0 @@ -.TH HALT 8 ubase\-VERSION -.OS Linux -.SH NAME -halt \- Halt, power-off or reboot the machine -.SH SYNOPSIS -.B halt -.RB [ \-pr ] -.SH DESCRIPTION -halt can be used to halt, power-off or reboot the machine. -.SH OPTIONS -.TP -.BI \-p -power-off the machine. -.TP -.BI \-r -reboot the machine. diff --git a/halt.8 b/halt.8 @@ -0,0 +1,16 @@ +.TH HALT 8 ubase\-VERSION +.OS Linux +.SH NAME +halt \- Halt, power-off or reboot the machine +.SH SYNOPSIS +.B halt +.RB [ \-pr ] +.SH DESCRIPTION +halt can be used to halt, power-off or reboot the machine. +.SH OPTIONS +.TP +.BI \-p +power-off the machine. +.TP +.BI \-r +reboot the machine. diff --git a/lsmod.1 b/lsmod.1 @@ -1,7 +0,0 @@ -.TH lsmod 8 sbase\-VERSION -.OS Linux -.SH NAME -lsmod \- list loaded kernel modules -.SH DESCRIPTION -lsmod parses `/proc/modules' and shows the loadable kernel modules that are -currently loaded. diff --git a/lsmod.8 b/lsmod.8 @@ -0,0 +1,7 @@ +.TH lsmod 8 sbase\-VERSION +.OS Linux +.SH NAME +lsmod \- list loaded kernel modules +.SH DESCRIPTION +lsmod parses `/proc/modules' and shows the loadable kernel modules that are +currently loaded. diff --git a/lsusb.1 b/lsusb.1 @@ -1,7 +0,0 @@ -.TH LSUSB 8 ubase\-VERSION -.OS Linux -.SH NAME -lsusb \- list USB devices -.SH DESCRIPTION -lsusb searches in `/sys/bus/usb/devices' for usb buses and connected devices and prints -them one by one. diff --git a/lsusb.8 b/lsusb.8 @@ -0,0 +1,7 @@ +.TH LSUSB 8 ubase\-VERSION +.OS Linux +.SH NAME +lsusb \- list USB devices +.SH DESCRIPTION +lsusb searches in `/sys/bus/usb/devices' for usb buses and connected devices and prints +them one by one.