]> granicus.if.org Git - re2c/commitdiff
Install page.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 20 Oct 2015 16:34:09 +0000 (17:34 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 20 Oct 2015 16:34:09 +0000 (17:34 +0100)
src/css/default.css
src/download.rst [deleted file]
src/index.rst
src/install.rst [new file with mode: 0644]
src/manual.rst

index 92a4c3a00a107ea277449947d4ab68ae96819e31..349654b23102a86771588142aaadb82e5531a8ed 100644 (file)
@@ -1,6 +1,9 @@
 body {
     text-align: justify;
-    margin: auto auto auto auto;
+    margin-top: 1%;
+    margin-right: auto;
+    margin-bottom: 1%;
+    margin-left: auto;
     width: 85%;
 }
 
diff --git a/src/download.rst b/src/download.rst
deleted file mode 100644 (file)
index e69de29..0000000
index 8be659d64bbbad0a9d67170b71e8301805baf842..3229f60bd7464f03c5681686d507f7e008764387 100644 (file)
@@ -9,7 +9,7 @@ and flexible (easy to embed into existing environment).
 
 --------------------------------------------------------------------------------
 
-`Download <download.html>`_
+`Install <install.html>`_
 ---------------------------
 `Manual <manual.html>`_
 -----------------------
@@ -21,3 +21,4 @@ and flexible (easy to embed into existing environment).
 Please send feedback to `re2c-devel <re2c-devel@lists.sourceforge.net>`_ and
 `re2c-general <re2c-general@lists.sourceforge.net>`_ mailing lists
 or `report a bug <https://github.com/skvadrik/re2c/issues>`_.
+Contributors welcome!
diff --git a/src/install.rst b/src/install.rst
new file mode 100644 (file)
index 0000000..e4d7f29
--- /dev/null
@@ -0,0 +1,181 @@
+
+`[home] <index.html>`_
+
+--------------------------------------------------------------------------------
+
+* `Download`_
+    - `Tarballs`_
+    - `Sources`_
+    - `Distributions`_
+* `Build`_
+    - `Bootstrap`_
+    - `Out-of-source`_
+    - `Windows`_
+* `Test`_
+
+.. _Download:
+
+Download
+========
+--------------------------------------------------------------------------------
+
+.. _Tarballs:
+
+Tarballs
+--------
+
+* `re2c-0.14.3.tar.gz <https://github.com/skvadrik/re2c/releases/download/0.14.3/re2c-0.14.3.tar.gz>`_
+* `re2c-0.13.7.5.tar.gz <https://github.com/skvadrik/re2c/releases/download/0.13.7.5/re2c-0.13.7.5.tar.gz>`_
+* `re2c-0.13.6.tar.gz <https://github.com/skvadrik/re2c/releases/download/0.13.6/re2c-0.13.6.tar.gz>`_
+* `re2c-0.13.5.tar.gz <http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/download>`_
+
+.. _Sources:
+
+Sources
+-------
+
+re2c is hosted on `github <https://github.com/skvadrik/re2c>`_:
+
+.. code-block:: bash
+
+    $ git clone git@github.com:skvadrik/re2c.git re2c
+
+There's also a mirror on `sourceforge <https://sourceforge.net/p/re2c/code-git/ci/master/tree/>`_
+(should be in sync with github):
+
+.. code-block:: bash
+
+    $ git clone ssh://git.code.sf.net/p/re2c/code-git re2c
+
+.. _Distributions:
+
+Distributions
+-------------
+
+Linux
+~~~~~
+
+* `Alt <http://www.sisyphus.ru/ru/srpm/Sisyphus/re2c>`_
+* `Arch <https://www.archlinux.org/packages/extra/x86_64/re2c>`_
+* `Debian <https://packages.debian.org/search?keywords=re2c>`_
+* `Gentoo <https://packages.gentoo.org/packages/dev-util/re2c>`_
+* `Fedora <http://rpmfind.net/linux/rpm2html/search.php?query=re2c&system=fedora>`_
+* `Mageia <http://rpmfind.net/linux/rpm2html/search.php?query=re2c&system=mageia>`_
+* `Mandriva <http://rpmfind.net/linux/rpm2html/search.php?query=re2c&system=mandriva>`_
+* `OpenSuSE <http://rpmfind.net/linux/rpm2html/search.php?query=re2c&system=opensuse>`_
+* `RedHat <http://rpmfind.net/linux/rpm2html/search.php?query=re2c&system=dag>`_
+* `Slackware <http://slackbuilds.org/repository/14.1/development/re2c/?search=re2c>`_
+* `Ubuntu <http://packages.ubuntu.com/search?keywords=re2c>`_
+
+Summary of available re2c versions in many (but not all) Linux distributions
+can be found on `pkgs.org <http://pkgs.org/download/re2c>`_.
+
+BSD
+~~~
+
+* `Apple Mac OS X <http://macappstore.org/re2c/>`_
+* `FreeBSD <http://www.freebsd.org/cgi/ports.cgi?query=re2c>`_
+* `NetBSD <http://pkgsrc.se/devel/re2c>`_
+* `OpenBSD <http://www.openbsd.org/4.5_packages/sh/re2c-0.13.5.tgz-long.html>`_
+
+.. _Build:
+
+Build
+=====
+--------------------------------------------------------------------------------
+
+If you are building re2c from sources, you'll first need to generate autotools files:
+
+.. code-block:: bash
+
+    $ ./autogen.sh
+
+Simply configure, build and install re2c (binary and manpage) to ``prefix`` (``/usr/local`` by default):
+
+.. code-block:: bash
+
+    $ ./configure [--prefix=<prefix>]
+    $ make
+    $ make install
+
+.. _Bootstrap:
+
+Bootstrap
+---------
+
+Some parts of re2c (lexers and parser of command-line options) are written in re2c.
+These files are precompiled and packaged into re2c distribution (so that re2c can be built without re2c).
+However, one can fully bootstrap re2c:
+
+.. code-block:: bash
+
+    $ make bootstrap
+
+.. _Out-of-source:
+
+Out-of-source
+-------------
+
+re2c supports out-of-source builds:
+
+.. code-block:: bash
+
+    $ mkdir builddir && cd builddir
+    $ ../configure [--prefix=<prefix>]
+    $ make
+    $ make install
+
+.. _Windows:
+
+Windows
+-------
+
+If you intend to use re2c on Windows, you can either
+use `cygwin <https://cygwin.com/>`_
+or build re2c with `mingw <http://mingw.org/>`_:
+
+.. code-block:: bash
+
+    $ ../configure --host i686-w64-mingw32  [--prefix=<prefix>]
+    $ make
+    $ make install
+
+(mingw builds are supported and tested regularly).
+
+.. _Test:
+
+Test
+====
+--------------------------------------------------------------------------------
+
+re2c has a main test suite and a couple of small tests. Run them all:
+
+.. code-block:: bash
+
+    $ make check
+
+Or run only the main test suite (and watch progress dumped to ``stdout``):
+
+.. code-block:: bash
+
+    $ make tests
+
+Run test suite under `valgrind <http://valgrind.org/>`_ (takes a long time):
+
+.. code-block:: bash
+
+    $ make vtests
+
+Test mingw builds with `wine <https://www.winehq.org/>`_:
+
+.. code-block:: bash
+
+    $ make wtests
+
+Check the distribution:
+
+.. code-block:: bash
+
+    $ make distcheck
+
+
index 11acceed07bb76967e94fe99c13254bdcb41a221..35bb1a3b2be6d3305caef17dab272d0fc8c878aa 100644 (file)
@@ -50,7 +50,7 @@ Since then many people have contributed to re2c:
 * Dan Nuffer       nuffer@users.sourceforge.net
 * Marcus Boerger   helly@users.sourceforge.net
 * Hartmut Kaiser   hkaiser@users.sourceforge.net
-* Emmanuel Mogenet mgix@mgix.com (added storable state)
+* Emmanuel Mogenet mgix@mgix.com
 * Ulya Trofimovich skvadrik@gmail.com
 
 Let me know if I missed someone!