Add man page - susmb - mounting of SMB/CIFS shares via FUSE
(HTM) git clone git://git.codemadness.org/susmb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7f87492ffbf2f0fcde4218bd5f496b2a8ab98319
(DIR) parent c8a437c7a29126d5fb58cf5066670b9f02c10955
(HTM) Author: Michal Suchanek <hramrach@centrum.cz>
Date: Sun, 14 Mar 2010 20:41:40 +0100
Add man page
Diffstat:
M Makefile.in | 16 +++++++++++++++-
M debian/control | 1 +
A usmb.1.txt | 71 +++++++++++++++++++++++++++++++
3 files changed, 87 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/Makefile.in b/Makefile.in
@@ -21,6 +21,8 @@ CC = @CC@
prefix = ${DESTDIR}@prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
+mandir = @mandir@
+man1dir = $(mandir)/man1
CFLAGS = @CFLAGS@ -I@srcdir@ -I@builddir@ -Werror
LDFLAGS = @LDFLAGS@
@@ -34,9 +36,10 @@ SOURCES = conffile.c options.c password.c usmb.c usmb_dir.c usmb_file.c \
OBJECTS = $(SOURCES:.c=.o)
PROGRAM = @PACKAGE_NAME@
+MANPAGE = @PACKAGE_NAME@.1
-all: $(PROGRAM)
+all: $(PROGRAM) $(MANPAGE)
$(PROGRAM): $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@@ -44,6 +47,7 @@ $(PROGRAM): $(OBJECTS)
clean:
$(RM) $(PROGRAM) $(OBJECTS)
+ $(RM) $(MANPAGE) $(MANPAGE).xml
distclean: clean
@@ -59,13 +63,23 @@ install-strip: STRIPFLAGS = -s
install install-strip: $(PROGRAM)
@MKDIR_P@ $(bindir)
@INSTALL@ -m 755 $(STRIPFLAGS) $(PROGRAM) $(bindir)/
+ @MKDIR_P@ $(man1dir)
+ @INSTALL@ -m 644 $(MANPAGE) $(man1dir)/
uninstall:
$(RM) $(bindir)/$(PROGRAM)
rmdir -p $(bindir)
+ $(RM) $(man1dir)/$(MANPAGE)
+ rmdir -p $(man1dir)
@echo Please delete ~/.usmb.conf manually.
+%.1: %.1.txt
+ a2x -f manpage $<
+
+# In case package name changed
+$(MANPAGE).txt: usmb.1.txt
+ ln -s usmb.1.txt $(MANPAGE).txt
dist: tar
(DIR) diff --git a/debian/control b/debian/control
@@ -3,6 +3,7 @@ Section: otherosfs
Priority: optional
Build-Depends:
debhelper,
+ asciidoc, xmlto,
autoconf (>= 2.63),
devscripts,
libfuse-dev (>= 2.6),
(DIR) diff --git a/usmb.1.txt b/usmb.1.txt
@@ -0,0 +1,71 @@
+USMB(1)
+=======
+Geoff Johnstone
+
+
+NAME
+----
+
+usmb - mount SMB/CIFS shares via FUSE
+
+SYNOPSIS
+--------
+
+*usmb* [OPTION...]
+
+DESCRIPTION
+-----------
+
+usmb allows mounting Samba (CIFS) shares through FUSE.
+
+
+Unlike some other Samba FUSE implementation usmb can mount shares from any
+server, including serrvers and shares not visible in "Network neighbourhood"
+(not advertised on the local lan.
+
+The share, user name and other details are specified in a configuration file.
+
+The source archive includes an example configuration file 'usmb.conf' and a
+more complete documentation of the program in 'README' file. If you have
+installed packaged version of the program these files should be available in
+'/usr/share/doc/usmb'.
+
+OPTIONS
+-------
+
+*-c 'configuration file'*::
+*--config='configuration file'*::
+ Specify configuration file to use.
+ Defaults to '~/.usmb.conf'.
+
+*-d*::
+*--debug*::
+ Debug mode.
+
+*-f*::
+*--nofork*::
+ Do not fork, stay in foreground.
+
+*-h*::
+*--help*::
+ Show options.
+
+FILES
+-----
+*'~/.usmb.conf'*::
+ The default location of usmb configuration file.
+
+SEE ALSO
+--------
+'README' 'usmb.conf' *fusermount*(1)
+
+
+AUTHORS
+-------
+ usmb was written by Geoff Johnstone
+ This minimal manpage was written by Michal Suchanek <hramrach@centrum.cz>
+
+COPYING
+-------
+Free use of this software is granted under the terms of the GNU General Public
+License (GPL).