Skip to contentSkip to conversation

make manpages

PATCH In review Olaf Hering 2 participants 2 messages Mar 14, 2004 – Mar 24, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make manpages

'man udev' is currently misleading, nodes appear in /dev, not /udev.

 Makefile       |   23 ++-
 udev.8         |  363 ---------------------------------------------------------
 udev.8.in      |  363 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 udevd.8        |   56 --------
 udevd.8.in     |   56 ++++++++
 udevinfo.8     |   63 ---------
 udevinfo.8.in  |   63 +++++++++
 udevstart.8    |   18 --
 udevstart.8.in |   18 ++
 9 files changed, 517 insertions(+), 506 deletions(-)
Makefile +17 -6
diff -p -purN udev-022/Makefile udev-022.xxx/Makefile
@@ -261,6 +261,12 @@ GEN_CONFIGS =	$(LOCAL_CFG_DIR)/udev.conf
 $(LOCAL_CFG_DIR)/udev.conf:
 	sed -e "s:@udevdir@:$(udevdir):" < $(LOCAL_CFG_DIR)/udev.conf.in > $@
 
+GEN_MANPAGES   = udev.8    udevd.8    udevinfo.8    udevstart.8
+GEN_MANPAGESIN = udev.8.in udevd.8.in udevinfo.8.in udevstart.8.in
+# Rules on how to create the man pages
+$(GEN_MANPAGES): $(GEN_MANPAGESIN)
+	sed -e "s:@udevdir@:$(udevdir):" < [email protected] > $@
+
 
 $(OBJS): $(GEN_HEADERS)
 $(ROOT).o: $(GEN_HEADERS)
@@ -375,7 +381,14 @@ install-config: $(GEN_CONFIGS)
 		$(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \
 	fi
 
-install: install-initscript install-config install-dbus-policy all
+install-man: $(GEN_MANPAGES)
+	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
+	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
+	$(INSTALL_DATA) -D udevstart.8 $(DESTDIR)$(mandir)/man8/udevstart.8
+	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
+	- ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
+
+install: install-initscript install-config install-dbus-policy install-man all
 	$(INSTALL) -d $(DESTDIR)$(udevdir)
 	$(INSTALL) -d $(DESTDIR)$(hotplugdir)
 	$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
@@ -384,11 +397,6 @@ install: install-initscript install-conf
 	$(INSTALL_PROGRAM) -D $(INFO) $(DESTDIR)$(usrbindir)/$(INFO)
 	$(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(sbindir)/$(TESTER)
 	$(INSTALL_PROGRAM) -D $(STARTER) $(DESTDIR)$(sbindir)/$(STARTER)
-	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
-	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
-	$(INSTALL_DATA) -D udevstart.8 $(DESTDIR)$(mandir)/man8/udevstart.8
-	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
-	- ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
 	- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
 ifndef DESTDIR
 	- killall udevd
@@ -407,7 +415,10 @@ uninstall: uninstall-dbus-policy
 	- rm $(configdir)/udev.conf
 	- rm $(initdir)/udev
 	- rm $(mandir)/man8/udev.8
+	- rm $(mandir)/man8/udevstart.8
 	- rm $(mandir)/man8/udevinfo.8
+	- rm $(mandir)/man8/udevd.8
+	- rm $(mandir)/man8/udevsend.8
 	- rm $(sbindir)/$(ROOT)
 	- rm $(sbindir)/$(DAEMON)
 	- rm $(sbindir)/$(SENDER)
udev.8 +0 -363

363 lines not on this page · raw message

udev.8.in +363 -0

363 lines not on this page · raw message

udevd.8 +0 -56

56 lines not on this page · raw message

udevd.8.in +56 -0

56 lines not on this page · raw message

udevinfo.8 +0 -63

63 lines not on this page · raw message

udevinfo.8.in +63 -0

63 lines not on this page · raw message

udevstart.8 +0 -18
diff -p -purN udev-022/udevstart.8 udev-022.xxx/udevstart.8
@@ -1,18 +0,0 @@
-.TH UDEVSTART 8 "March 2004" "" "Linux Administrator's Manual"
-.SH NAME
-udevstart \- populate initial device directory
-.SH SYNOPSIS
-.B udevstart
-.SH "DESCRIPTION"
-.B udevstart
-walks trough the sysfs device tree and calls
-.B udev
-to create the nodes for every valid device found. It can be used to fill a
-empty device directory with nodes for all devices currently available on
-the system.
-.SH "SEE ALSO"
-.BR udev (8)
-.SH AUTHORS
-.B udevstart
-was developed primarily by Harald Hoyer <[email protected]>, with much help
-from others.
udevstart.8.in +18 -0
diff -p -purN udev-022/udevstart.8.in udev-022.xxx/udevstart.8.in
@@ -0,0 +1,18 @@
+.TH UDEVSTART 8 "March 2004" "" "Linux Administrator's Manual"
+.SH NAME
+udevstart \- populate initial device directory
+.SH SYNOPSIS
+.B udevstart
+.SH "DESCRIPTION"
+.B udevstart
+walks trough the sysfs device tree and calls
+.B udev
+to create the nodes for every valid device found. It can be used to fill a
+empty device directory with nodes for all devices currently available on
+the system.
+.SH "SEE ALSO"
+.BR udev (8)
+.SH AUTHORS
+.B udevstart
+was developed primarily by Harald Hoyer <[email protected]>, with much help
+from others.
Signature · 14 lines
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op�k
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 2 lines · Olaf Hering

'man udev' is currently misleading, nodes appear in /dev, not /udev.

Ok, I wanted to apply this patch, but it doesn't against the latest udev bk tree :(

Care to send this again after I do a new release?

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel