]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Convert INSTALL and NEWS to markdown format.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 20 Jun 2016 14:05:31 +0000 (16:05 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 14 Jul 2016 15:03:11 +0000 (17:03 +0200)
The grutatxt project is dead, so we have to switch to something else
eventually. Fortunately, there are only three files in grutatxt format,
one of which (README) does not need any changes. The other two are
converted to markdown format in this commit. This is a rather simple
matter since only section headings, links and preformatted text need
slight adjustments.

The commands in the Makefile are modified to run markdown(1) instead
of grutatxt(1).

INSTALL
Makefile
NEWS

diff --git a/INSTALL b/INSTALL
index 182d58ca1cced093ad5875071933b7949bae0124..db3d1c56386bb4c117c333adbe84c4694664c9e9 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1,26 +1,27 @@
 Type
 
-       make
+               make
 
-in the dss source directory to build the dss executable and copy it to
-some directory that is included in your PATH, e.g. to $HOME/bin or to
-/usr/local/bin.
+in the dss source directory to build the dss executable and copy it
+to some directory that is included in your PATH, e.g. to `$HOME/bin`
+or to `/usr/local/bin`.
 
-Note that https://www.gnu.org/software/gengetopt/gengetopt.html (gnu gengetopt)
+Note that [gnu
+gengetopt](https://www.gnu.org/software/gengetopt/gengetopt.html)
 is required to compile dss.
 
 Optionally, type
 
-        make man
+                make man
 
 to create the man page of dss. This invokes help2man so make sure
 that help2man is installed on your system. Note that the man page is
-just the nroff variant of the output of "dss --detailed-help".
+just the nroff variant of the output of `dss --detailed-help`.
 
 dss is known to compile on Linux, MacOS, Solaris, FreeBSD and
 NetBSD. However, it is run-tested only on Linux.
 
-Also make sure that http://rsync.samba.org/ (rsync) is installed on
+Also make sure that [rsync](http://rsync.samba.org/) is installed on
 your system. Version 2.6.1 or newer is required.
 
 Examples:
@@ -28,30 +29,30 @@ Examples:
 
 Suppose you'd like to create snapshots of the existing directory
 
-       /foo/bar
+               /foo/bar
 
 in the directory
 
-       /baz/qux.
+               /baz/qux.
 
 Create the config file
 
-       ~/.dssrc
+               ~/.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
+               echo 'source-dir "/foo/bar"' > ~/.dssrc
+               echo 'dest-dir "/baz/qux"' >> ~/.dssrc
 
 Then execute the commands
 
-       mkdir /baz/qux
-       dss --run
+               mkdir /baz/qux
+               dss --run
 
 In order to print the list of all snapshots created so far, use
 
-       dss --ls
+               dss --ls
 
 Yes, it's really that easy.
 
@@ -60,31 +61,31 @@ 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 snaphots
-       num-intervals "6"
+               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 snaphots
+               num-intervals "6"
 
 The /etc/dss.exclude file could look like this (see rsync(1) for
 more examples)
 
-        - /proc
-        - /**/tmp/
+
+                - /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
+               dss -h
 
 for an overview of all supported command line options or
 
-       dss --detailed-help
+               dss --detailed-help
 
 for the full help text.
index 7a4b6a98c9c5b3af9efdbfa5f2bf6040e0b7e3f5..111019c53d3f5dc21ed06f40f787bdf4caa20bc8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -47,11 +47,11 @@ clean:
 
 index.html: dss.1.html index.html.in INSTALL README NEWS
        sed -e '/@README@/,$$d' index.html.in > $@
-       grutatxt -nb < README >> $@
+       markdown README >> $@
        sed -e '1,/@README@/d' -e '/@NEWS@/,$$d' index.html.in >> $@
-       grutatxt -nb < NEWS >> $@
+       markdown NEWS >> $@
        sed -e '1,/@NEWS@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@
-       grutatxt -nb < INSTALL >> $@
+       markdown INSTALL >> $@
        sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@
        sed -e '1,/Return to Main Contents/d' -e '/SEE ALSO/,$$d' dss.1.html >> $@
        sed -e '1,/@MAN_PAGE@/d' index.html.in >> $@
diff --git a/NEWS b/NEWS
index c1bfc72244341fd92ccf424b6491bba4f2180ddb..aa6ae488882661dc8296d0b8d4f592d03830716a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -40,8 +40,9 @@
  - Default hooks work also on systems where "/bin/true" does not exist,
  e.g. Mac OS.
 
+------------------
 0.1.4 (2010-11-08)
-~~~~~~~~~~~~~~~~~~
+------------------
 This version of dss contains some new features, many improvements of
 existing features and several bug fixes.
 
@@ -51,28 +52,32 @@ exists. The internal handling of the various hooks has been simplified
 and many error messages have been clarified. On SIGHUP, dss now writes
 its configuration and internal state to the log file.
 
+------------------
 0.1.3 (2009-06-06)
-~~~~~~~~~~~~~~~~~~
+------------------
 You can now specify pre-rm/post-rm-hooks that are executed whenever
 a snapshot is deleted. This release adds better compatibility with
 rsync 3.0, and avoids busy loops when automatically restarting the
 rsync process.
 
+------------------
 0.1.2 (2009-03-05)
-~~~~~~~~~~~~~~~~~~
+------------------
 This release includes the reason why a snapshot gets removed in the
 log message. It will never remove the snapshot that is currently
 being created. It will really pass the full path to the last complete
 snapshot in the post_create_hook.
 
+------------------
 0.1.1 (2008-11-13)
-~~~~~~~~~~~~~~~~~~
+------------------
 This release prevents busy loops on rsync exit code 13. It ignores
 any snapshot directory with creation time >= completion time. It
 opens /dev/null for reading and writing when executing rsync. It shows
 human readable snapshot creation duration when listing snapshots. It
 restarts the rsync process if it returned with exit code 13.
 
+------------------
 0.1.0 (2008-10-10)
-~~~~~~~~~~~~~~~~~~
+------------------
 Initial public release.