]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- started work on man-page
authorArvin Schnell <aschnell@suse.de>
Wed, 8 Jun 2011 12:47:14 +0000 (14:47 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 8 Jun 2011 12:47:14 +0000 (14:47 +0200)
Makefile.am
configure.in
doc/Makefile.am [new file with mode: 0644]
doc/snapper.8 [new file with mode: 0644]
snapper.spec.in

index a605786c73459d1fb6c605272c1c54cd09aeeaa5..2a78bee7fba8087f6673f8e2053ec71b714cddb4 100644 (file)
@@ -2,7 +2,7 @@
 # Makefile.am for snapper
 #
 
-SUBDIRS = snapper examples tools scripts data po testsuite-real
+SUBDIRS = snapper examples tools scripts data doc po testsuite-real
 
 AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip
 
index cba603639d241f7e83cfdc15b5db6803b88295d2..7d6de21b3db73112239ea68d8156370ea89d42e9 100644 (file)
@@ -48,6 +48,7 @@ AC_OUTPUT(
        tools/utils/Makefile
        scripts/Makefile
        data/Makefile
+       doc/Makefile
        po/Makefile
        testsuite-real/Makefile
        package/snapper.spec:snapper.spec.in
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644 (file)
index 0000000..a78c56f
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# Makefile.am for snapper/doc
+#
+
+man_MANS = snapper.8
+
+EXTRA_DIST = $(man_MANS)
+
diff --git a/doc/snapper.8 b/doc/snapper.8
new file mode 100644 (file)
index 0000000..a326841
--- /dev/null
@@ -0,0 +1,144 @@
+.TH "snapper" "8" "0.0.6" "snapper" "System Tools"
+.SH "NAME"
+.LP
+snapper - Command\-line program
+
+.SH "SYNTAX"
+.LP
+snapper [\fI\-\-global\-opts\fR] <\fBcommand\fR> [\fI\-\-command\-opts\fR] [\fBcommand-arguments\fR]
+
+snapper \fBhelp\fR
+.SH "DESCRIPTION"
+.LP
+snapper is a command\-line interface to ZYpp system management library.
+It can be used to install, update, remove software, manage repositories, perform
+various queries, and more.
+
+.SH "COMMANDS"
+.LP
+snapper provides a number of \fBcommands\fR. Each command accepts the options
+listed in the GLOBAL OPTIONS section. These options must be specified
+\fIbefore\fR the command name. In addition, many commands have specific
+options, which are listed in this section. These command-specific options must
+be specified \fIafter\fR the name of the command and \fIbefore\fR any
+of the command arguments.
+
+.TP
+.B help
+Shows help texts.
+
+.TP
+.B list-configs
+List
+
+.TP
+.B create-config [options] <name>
+Displays detailed informaion about the specified packages.
+
+.TP
+\fI\-t, \-\-template\fR name
+Work only with the repository specified by the alias, name, number or URI. This
+option can be used multiple times.
+
+.TP
+.B list [options]
+List
+.TP
+\fI\-t, \-\-type\fR type
+Type
+
+.TP
+.B create [options]
+Create
+.TP
+\fI\-t, \-\-type\fR type
+Type
+.TP
+\fI\-t, \-\-pre\-number\fR type
+Type
+.TP
+\fI\-d, \-\-description\fR description
+Description
+.TP
+\fI\-d, \-\-print\-number\fR description
+Description
+.TP
+\fI\-d, \-\-cleanup\-algorithm\fR description
+Description
+
+.TP
+.B modify [options] <number>
+Modify
+.TP
+\fI\-d, \-\-description\fR description
+Description
+
+.TP
+.B delete <number>
+Delete
+
+.TP
+.B diff [options] <number1> <number2>
+Diff
+.TP
+\fI\-o, \-\-output\fR description
+Output
+.TP
+\fI\-f, \-\-file\fR file
+Diff file
+
+.TP
+.B rollback [options] <number1> <number2>
+Rollback
+.TP
+\fI\-f, \-\-file\fR file
+Files
+
+.TP
+.B cleanup <cleanup-algorithm>
+Cleanup
+
+.SH "GLOBAL OPTIONS"
+
+.TP
+.I \-q, \-\-quiet
+Suppress normal output. Brief (esp. result notification) messages and error
+messages will still be printed, though. If used together with conflicting
+--verbose option, the --verbose option takes preference.
+.TP
+.I \-v, \-\-verbose
+Increase verbosity. For debugging output specify this option twice.
+.TP
+.I \-t, \-\-table\-style
+Specifies table style to use. Table style is identified by an integer number. TODO
+.TP
+.I \-c, \-\-config <name>
+Use specified config file instead of the default files.
+Other command line options specified together with --config and having
+their counterpart in the config file are still prefered.
+
+.SH "FILES"
+.TP
+.B /etc/sysconfig/snapper
+Global
+.TP
+.B /etc/snapper/configs
+Directory containing
+.TP
+.B /etc/snapper/config-templates
+Directory containing
+.TP
+.B /etc/snapper/filters
+Directory containing 
+
+.SH "HOMEPAGE"
+
+http://en.opensuse.org/Portal:Snapper
+
+.SH "AUTHORS"
+.LP
+Arvin Schnell <aschnell@suse.de>
+
+.SH "SEE ALSO"
+.LP
+btrfs(8)
index 580fb3bdb80e7add2c6749779bf290b2cd74324b..b9e3e2cb4a9924dc6c5b94e49b0e46f016e11c27 100644 (file)
@@ -51,6 +51,7 @@ rm -rf "$RPM_BUILD_ROOT"
 %files -f snapper.lang
 %defattr(-,root,root)
 %{prefix}/bin/snapper
+%doc %{_mandir}/*/*
 %config(noreplace) %{_sysconfdir}/logrotate.d/snapper
 /etc/cron.hourly/suse.de-snapper
 /etc/cron.daily/suse.de-snapper