On Wed, Apr 17, 2019 at 10:53:54PM BST, Theo Buehler wrote:
> On Wed, Apr 17, 2019 at 11:34:56PM +0200, Solene Rapenne wrote:
> > On Wed, Apr 17, 2019 at 09:55:26PM +0100, Raf Czlonka wrote:
> > > Hi all,
> > > 
> > > Similar to other pages[0][1], use class="cmdbox", add prompt character
> > > where appropriate, and remove superfluous indentation while there.
> > > 
> > > [0] https://www.openbsd.org/anoncvs.html
> > > [1] https://www.openbsd.org/ddb.html
> > > 
> > > Regards,
> > > 
> > > Raf
> > 
> > this looks much better with this
> > 
> > ok solene@
> > 
> 
> Please send a diff for www/build/mirrors/cvsync.html.* instead

After cvsync.html -> build/mirrors/cvsync.html.head change, the patch
applies just fine but, as requested, re-done for the
build/mirrors/cvsync.html.head below anyway.

> hiro$ head -1 cvsync.html
> <!-- DO NOT EDIT MANUALLY! See comments in www/build/mirrors.dat for details 
> -->

Arghhh... force of habit:

        $ vi +/pre cvsync.html

:^P

Cheers,

Raf

Index: build/mirrors/cvsync.html.head
===================================================================
RCS file: /cvs/www/build/mirrors/cvsync.html.head,v
retrieving revision 1.36
diff -u -p -r1.36 cvsync.html.head
--- build/mirrors/cvsync.html.head      2 Apr 2018 02:48:19 -0000       1.36
+++ build/mirrors/cvsync.html.head      17 Apr 2019 22:37:34 -0000
@@ -57,8 +57,8 @@ CVS is part of OpenBSD's base system.
 CVSync is an entirely different program and can be installed from
 packages:
 
-<pre>
-        <b>pkg_add cvsync</b>
+<pre class="cmdbox">
+# <b>pkg_add cvsync</b>
 </pre>
 
 Do not build your own copy from unmodified upstream source -
@@ -69,17 +69,17 @@ used in the OpenBSD repository.
 In order to mirror the OpenBSD repository with CVSync,
 the following configuration file might be used:
 
-<pre>
-       config {
-           hostname anoncvs.eu.openbsd.org
-           # If your network link is a T1 or faster, comment out the following 
line.
-           compress
-           collection {
-               name openbsd release rcs
-               prefix /cvs
-               umask 002
-           }
-       }
+<pre class="cmdbox">
+config {
+    hostname anoncvs.eu.openbsd.org
+    # If your network link is a T1 or faster, comment out the following line.
+    compress
+    collection {
+       name openbsd release rcs
+       prefix /cvs
+       umask 002
+    }
+}
 </pre>
 
 <p>
@@ -93,8 +93,8 @@ The local copy of the files are stored i
 Assuming this file is saved as <tt>cvs-syncfile</tt>, the
 following command would be used to invoke cvsync
 
-<pre>
-        <b>cvsync -c cvs-syncfile</b>
+<pre class="cmdbox">
+$ <b>cvsync -c cvs-syncfile</b>
 </pre>
 
 <h3 id="rsync">Getting Started Using Rsync</h3>
@@ -104,13 +104,13 @@ file synchronization program.
 Again this should be installed from packages.
 Two flavours are available:
 
-<pre>
-       <b># pkg_add rsync</b>
-       Ambiguous: choose package for rsync
-       a       0: <None>
-               1: rsync-3.1.2p0
-               2: rsync-3.1.2p0-iconv
-       Your choice:
+<pre class="cmdbox">
+# <b>pkg_add rsync</b>
+Ambiguous: choose package for rsync
+a      0: <None>
+       1: rsync-3.1.2p0
+       2: rsync-3.1.2p0-iconv
+Your choice:
 </pre>
 
 Unless you have other requirements, simply install the standard version
@@ -118,15 +118,15 @@ Unless you have other requirements, simp
 You can select the flavour on the command-line to avoid
 <a href="//man.openbsd.org/pkg_add">pkg_add(1)</a> prompting for the
 version like so:
-<pre>
-       <b>pkg_add rsync--</b>
+<pre class="cmdbox">
+# <b>pkg_add rsync--</b>
 </pre>
 
 In order to mirror the OpenBSD repository with rsync,
 the following command line might be used:
 
-<pre>
-       <b>rsync -avz --delete rsync://obsdacvs.cs.toronto.edu/obsdcvs/ 
/cvs/</b>
+<pre class="cmdbox">
+$ <b>rsync -avz --delete rsync://obsdacvs.cs.toronto.edu/obsdcvs/ /cvs/</b>
 </pre>
 
 <h3 id="using">Using CVS to Work With Your Repository</h3>
@@ -135,10 +135,10 @@ Now that you have a local copy of the CV
 to check out, update, or do any of the other CVS operations you would
 normally do against a remote repository, locally.
 For example:
-<pre>
-        <b>cvs -d/cvs checkout -P src</b>
-        <b>cvs -d/cvs up -Pd</b>
-        <b>cvs -d/cvs diff -u file.c</b>
+<pre class="cmdbox">
+$ <b>cvs -d/cvs checkout -P src</b>
+$ <b>cvs -d/cvs up -Pd</b>
+$ <b>cvs -d/cvs diff -u file.c</b>
 </pre>
 More details on CVS operation can be found in
 <a href="faq/faq5.html#BldGetSrc">FAQ5, Fetching appropriate source

Reply via email to