]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Kill INSTALL.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 7 May 2024 23:54:50 +0000 (01:54 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 26 Jun 2024 17:29:02 +0000 (19:29 +0200)
Move the installation instructions to index.html.m4 and the
configuration bits to the new examples section of the man page.

Streamline the installation instructions and recommend to install the
debian package of lopsub.

INSTALL [deleted file]
Makefile
dss.suite.m4
index.html.m4

diff --git a/INSTALL b/INSTALL
deleted file mode 100644 (file)
index 09d8505..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,94 +0,0 @@
-dss is known to compile on Linux, FreeBSD and NetBSD. However, it is
-run-tested only on Linux.
-
-Note that [lopsub](http://people.tuebingen.mpg.de/maan/lopsub)
-is required to compile dss.
-
-Type
-
-               make
-
-in the dss source directory to build the dss executable and the man
-page. If lopsub is installed in a non-standard path, you may need to
-run `make` as follows:
-
-               make CPPFLAGS=-I$HOME/lopsub/include LDFLAGS=-L$HOME/lopsub/lib
-
-Then type
-
-               sudo make install
-
-to install in /usr/local, or
-
-               make install PREFIX=/somewhere/else
-
-to install in /somewhere/else.
-
-Also make sure that [rsync](https://rsync.samba.org/) is installed on
-your system. Version 2.6.1 or newer is required.
-
-Examples:
----------
-
-Suppose you'd like to create snapshots of the existing directory
-
-               /foo/bar
-
-in the directory
-
-               /baz/qux.
-
-Create the config file
-
-               ~/.dssrc
-
-that contains the values for the source and the destination directories
-as follows:
-
-               echo 'source-dir "/foo/bar"' > ~/.dssrc
-               echo 'dest-dir "/baz/qux"' >> ~/.dssrc
-
-Then execute the commands
-
-               mkdir /baz/qux
-               dss run
-
-In order to print the list of all snapshots created so far, use
-
-               dss ls
-
-Yes, it's really that easy.
-
-The second example involves a slightly more sophisticated config file.
-It instructs dss to exclude everything which matches at least one
-pattern of the given exclude file, prevents rsync from crossing file
-system boundaries and increases the number of snapshots.
-
-               source-dir "/foo/bar"
-               dest-dir "/baz/qux"
-               # exclude files matching patterns in /etc/dss.exclude
-               rsync-option "--exclude-from=/etc/dss.exclude"
-               # don't cross filesystem boundaries
-               rsync-option "--one-file-system"
-               # maintain 2^6 - 1 = 63 snapshots
-               num-intervals "6"
-
-The /etc/dss.exclude file could look like this (see rsync(1) for
-more examples)
-
-
-                - /proc
-                - /**/tmp/
-
-Note that dss supports many more features and config options such
-as taking snapshots from remote hosts and several hooks that are
-executed on certain events, for example whenever a snapshot was
-created successfully. Try
-
-               dss -h
-
-for an overview of all supported command line options or
-
-               dss --detailed-help
-
-for the full help text.
index 2db46b2ae6ffb8fd473679106a94ba867e043213..f06f80c8dcdccea64cfc36ef28314aee8db3b3e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@ README:
 index.html.in: index.html.m4
        $(call SAY, M4 $<)
        $(M4) $< > $@
-index.html: index.html.in INSTALL NEWS
+index.html: index.html.in NEWS
        $(call SAY, MD $@)
        sed -e '/@README@/,$$d' index.html.in > $@
        printf '<p> %s </p>\n' "$(DESCRIPTION1)" >> $@
@@ -170,8 +170,5 @@ index.html: index.html.in INSTALL NEWS
        printf '<p> %s </p>\n' "$(DESCRIPTION3)" >> $@
        sed -e '1,/@README@/d' -e '/@NEWS@/,$$d' index.html.in >> $@
        markdown NEWS >> $@
-       sed -e '1,/@NEWS@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@
-       markdown INSTALL >> $@
-       sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@
 
 -include Makefile.local
index 227b0b5d07cccaf7319ef1ab55bad5feab599b42..fff9e2bc1a93b23d8e21c306f0c46ecfe8fa16a1 100644 (file)
@@ -544,6 +544,67 @@ caption = Subcommands
                detected and terminates with exit code 1.
        [/description]
 
+[section examples]
+
+       Suppose you'd like to create snapshots of the existing directory
+       .I /foo/bar
+       in the directory
+       .IR /baz/qux .
+       Create the config file
+       .I ~/.dssrc
+       containing
+       the values for the source and the destination directories
+       as follows:
+
+       .RS 6
+       .EX
+               echo 'source-dir "/foo/bar"' > ~/.dssrc
+               echo 'dest-dir "/baz/qux"' >> ~/.dssrc
+       .EE
+       .RE
+
+       Then execute the commands
+
+       .RS 6
+       .EX
+               mkdir /baz/qux
+               dss run
+       .EE
+       .RE
+
+       To print the list of all snapshots created so far, run
+       .IR dss\~ls .
+
+       The second example involves a slightly more sophisticated config
+       file. It instructs dss to exclude everything which matches at least
+       one pattern of the given exclude file, prevents rsync from crossing
+       file system boundaries and increases the number of snapshots.
+
+       .RS 6
+       .EX
+               source-dir "/foo/bar"
+               dest-dir "/baz/qux"
+               # exclude files matching patterns in /etc/dss.exclude
+               rsync-option \-\-exclude\-from=/etc/dss.exclude
+               # don't cross filesystem boundaries
+               rsync-option \-\-one\-file\-system
+               # maintain 2^6 - 1 = 63 snapshots
+               num-intervals "6"
+       .EE
+       .RE
+
+       The
+       .I /etc/dss.exclude
+       file could look like this (see rsync(1) for more examples)
+
+       .RS 6
+       .EX
+                - /proc
+                - /**/tmp/
+       .EE
+       .RE
+[/section]
+
 [section copyright]
        Written by AUTHOR()
        .br
index 91b741157a9530cb291ddc8aeb21202f61ca10cf..4b23c81477d71a62a345ad6923bf494166e22dd1 100644 (file)
@@ -20,50 +20,33 @@ dnl SPDX-License-Identifier: GPL-2.0
                        </td>
                </tr>
        </table>
-
        <hr>
-
-       [<a href="#news">NEWS</a>]
-       [<a href="#install">INSTALL</a>]
-       [<a href="#resources">Resources</a>]
-
+       [<a href="`#'installation">Installation</a>]
+       [<a href="`#'resources">Resources</a>]
+       [<a href="`#'news">News</a>]
        <hr>
 
-       <center>
-               <h2>
-                       <a name="readme">README</a>
-               </h2>
-       </center>
-
        @README@
 
-       <hr>
+       <h2> <a name="installation">Installation</a> </h2>
 
-       <center>
-               <h2>
-                       <a name="news">NEWS</a>
-               </h2>
-       </center>
+       <p> To install the dependencies, run <code>apt-get install gcc rsync
+       liblopsub-dev m4</code>. </p>
 
-       @NEWS@
+       <p> To download the source code, run <code>git clone
+       CLONE_URL()</code>, or grab a current tarball from the <a
+       href="GITWEB_URL()">gitweb page</a> and unpack it. </p>
 
-       <hr>
+       <p> To build the PACKAGE() executable and the man page, enter the
+       PACKAGE() source directory and type <code>make</code>. To install
+       both files run <code>sudo make install</code>. </p>
 
-       <center>
-               <h2>
-                       <a name="install">INSTALL</a>
-               </h2>
-       </center>
+       <p> Try <code>dss -h</code> for an overview of all supported command
+       line options, <code>dss --detailed-help</code> for the long help text,
+       or <code>man dss</code> to see the man page which contains example
+       configurations. </p>
 
-       <p> To download the source code, run <tt> git clone CLONE_URL() </tt>,
-       or grab a current tarball from the <a href="GITWEB_URL()">gitweb
-       page</a> and unpack it. </p>
-
-       @INSTALL@
-
-       <hr>
-
-       <center> <h2> <a name="resources">Resources</a> </h2> </center>
+       <h2> <a name="resources">Resources</a> </h2>
        <ul>
                <li> <a href="PACKAGE_HOMEPAGE()">PACKAGE() home page</a> </li>
                <li> <code>git clone CLONE_URL()</code> </li>
@@ -73,5 +56,6 @@ dnl SPDX-License-Identifier: GPL-2.0
                <li> Contact: <a href="mailto:EMAIL()">AUTHOR() &lt;EMAIL()&gt;</a> </li>
                <li> License: <a href="LICENSE_URL()">LICENSE()</a> </li>
        </ul>
+       <h2> <a name="news">News</a> </h2>
+       @NEWS@
 </body> </html>
-