[hackers] [ubase] Rename manpages to match the proper section || sin

From: <git_AT_suckless.org>
Date: Thu, 17 Oct 2013 13:03:52 +0200

commit 8c2bbb8fb32e539e384ad695c00a611ee93b8ae4
Author: sin <sin_AT_2f30.org>
Date: Thu Oct 17 11:41:48 2013 +0100

    Rename manpages to match the proper section
    
    Install manpages to the right place, ensure their permissions
    is set correctly.

diff --git a/Makefile b/Makefile
index 3a670c6..7dd2704 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -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
 
_AT_@ -83,8 +93,12 @@ 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_for m in $(MAN); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
- _AT_cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN)
+ _AT_for m in $(MAN1); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
+ _AT_echo installing manual pages to $(DESTDIR)$(MANPREFIX)/man8
+ _AT_mkdir -p $(DESTDIR)$(MANPREFIX)/man8
+ _AT_for m in $(MAN8); do sed "s/VERSION/$(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man8/"$$m"; done
+ _AT_chmod 644 $(DESTDIR)$(MANPREFIX)/man1/$(MAN1)
+ _AT_chmod 644 $(DESTDIR)$(MANPREFIX)/man8/$(MAN8)
 
 uninstall:
         _AT_echo removing executables from $(DESTDIR)$(PREFIX)/bin
diff --git a/clear.1 b/clear.1
old mode 100755
new mode 100644
diff --git a/df.1 b/df.1
old mode 100755
new mode 100644
diff --git a/eject.1 b/eject.1
old mode 100755
new mode 100644
diff --git a/halt.1 b/halt.1
deleted file mode 100755
index 5389d2b..0000000
--- a/halt.1
+++ /dev/null
_AT_@ -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
new file mode 100644
index 0000000..5389d2b
--- /dev/null
+++ b/halt.8
_AT_@ -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
deleted file mode 100755
index fc2ca4a..0000000
--- a/lsmod.1
+++ /dev/null
_AT_@ -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
new file mode 100644
index 0000000..fc2ca4a
--- /dev/null
+++ b/lsmod.8
_AT_@ -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
deleted file mode 100755
index 28a62cb..0000000
--- a/lsusb.1
+++ /dev/null
_AT_@ -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
new file mode 100644
index 0000000..28a62cb
--- /dev/null
+++ b/lsusb.8
_AT_@ -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.
Received on Thu Oct 17 2013 - 13:03:52 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 17 2013 - 13:12:26 CEST