Permalink
Browse files

Remove unnecessary version numbers and have only one source of the ve…

…rsion.
  • Loading branch information...
1 parent 4d23cfb commit 49b14d86ff46b25b5399987e970dc851ac821119 @rrthomas rrthomas committed Oct 4, 2012
Showing with 19 additions and 11 deletions.
  1. +2 −2 LICENSE
  2. +2 −2 README.rst
  3. +1 −1 doc/license.html
  4. +2 −2 doc/manual.txt
  5. +11 −2 rockspecs.lua
  6. +1 −2 src/algo.h
View
@@ -1,5 +1,5 @@
-License of Lrexlib release 2.6
-------------------------------
+License of Lrexlib release
+--------------------------
Copyright (C) Reuben Thomas 2000-2012
Copyright (C) Shmuel Zeigerman 2004-2012
View
@@ -1,5 +1,5 @@
-Lrexlib 2.6
-===========
+Lrexlib
+=======
| by Reuben Thomas (rrt@sc3d.org)
| and Shmuel Zeigerman (shmuz@013net.net) [maintainer]
View
@@ -5,7 +5,7 @@
</head>
<body>
-<h2>Lrexlib 2.6</h2>
+<h2>Lrexlib</h2>
<p>Copyright &copy; Reuben Thomas 2000-2012<br>
Copyright &copy; Shmuel Zeigerman 2004-2012
View
@@ -1,7 +1,7 @@
.. role:: funcdef(literal)
-Lrexlib 2.6 Reference Manual
-============================
+Lrexlib Reference Manual
+========================
.. contents:: Table of Contents
View
@@ -45,6 +45,7 @@ PCRE = {
type = "builtin",
modules = {
rex_pcre = {
+ defines = {"VERSION=\""..version.."\""},
sources = {"src/common.c", "src/pcre/lpcre.c", "src/pcre/lpcre_f.c"},
libraries = {"pcre"},
incdirs = {"$(PCRE_INCDIR)"},
@@ -63,7 +64,10 @@ POSIX = {
build = {
type = "builtin",
modules = {
- rex_posix = {"src/common.c", "src/posix/lposix.c"}
+ rex_posix = {
+ defines = {"VERSION=\""..version.."\""},
+ sources = {"src/common.c", "src/posix/lposix.c"}
+ }
}
}
},
@@ -79,6 +83,7 @@ oniguruma = {
type = "builtin",
modules = {
rex_onig = {
+ defines = {"VERSION=\""..version.."\""},
sources = {"src/common.c", "src/oniguruma/lonig.c", "src/oniguruma/lonig_f.c"},
libraries = {"onig"},
incdirs = {"$(ONIG_INCDIR)"},
@@ -99,6 +104,7 @@ TRE = {
type = "builtin",
modules = {
rex_tre = {
+ defines = {"VERSION=\""..version.."\""},
sources = {"src/common.c", "src/tre/ltre.c" --[[, "src/tre/tre_w.c"]]},
libraries = {"tre"},
incdirs = {"$(TRE_INCDIR)"},
@@ -117,7 +123,10 @@ GNU = {
build = {
type = "builtin",
modules = {
- rex_posix = {"src/common.c", "src/gnu/lgnu.c"}
+ rex_posix = {
+ defines = {"VERSION=\""..version.."\""},
+ source = {"src/common.c", "src/gnu/lgnu.c"}
+ }
}
}
},
View
@@ -3,8 +3,7 @@
#include "common.h"
-/* FIXME: Get version from defaults.mak */
-#define REX_VERSION "Lrexlib 2.6.0"
+#define REX_VERSION "Lrexlib " VERSION
/* Forward declarations */
static void gmatch_pushsubject (lua_State *L, TArgExec *argE);

0 comments on commit 49b14d8

Please sign in to comment.