From: José Matox Date: Mon, 10 Apr 2006 16:18:31 +0000 (+0000) Subject: * configure.ac X-Git-Tag: 1.6.10~13363 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=69664082dabc93cdcf90280f9e1812b44d1a9bb5;p=features.git * configure.ac * lib/lyx2lyx/lyx2lyx_version.py.in * lib/lyx2lyx/Makefile.am Add lyx2lyx_version.py to distribution. * lib/lyx2lyx/LyX.py Use lyx version as the same version of lyx2lyx. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13626 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/configure.ac b/configure.ac index c2d5984e6a..985c3214f7 100644 --- a/configure.ac +++ b/configure.ac @@ -440,6 +440,7 @@ AC_CONFIG_FILES([Makefile m4/Makefile \ development/lyx.spec \ lib/Makefile \ lib/doc/Makefile \ + lib/lyx2lyx/lyx2lyx_version.py \ lib/lyx2lyx/Makefile \ intl/Makefile \ po/Makefile.in \ diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 5e36c19995..6621ad1381 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -25,7 +25,9 @@ import re import string import time -version_lyx2lyx = "1.5.0svn" +import lyx2lyx_version +version_lyx2lyx = lyx2lyx_version.version + default_debug_level = 2 # Regular expressions used diff --git a/lib/lyx2lyx/Makefile.am b/lib/lyx2lyx/Makefile.am index 270d498646..a7dca42b55 100644 --- a/lib/lyx2lyx/Makefile.am +++ b/lib/lyx2lyx/Makefile.am @@ -8,6 +8,7 @@ lyx2lyxdir = $(pkgdatadir)/lyx2lyx # and chmod manually in install-data-hook. dist_lyx2lyx_PYTHON = \ lyx2lyx \ + lyx2lyx_version.py \ parser_tools.py \ LyX.py \ lyx_0_12.py \ diff --git a/lib/lyx2lyx/lyx2lyx_version.py.in b/lib/lyx2lyx/lyx2lyx_version.py.in new file mode 100644 index 0000000000..0bd7ea9d12 --- /dev/null +++ b/lib/lyx2lyx/lyx2lyx_version.py.in @@ -0,0 +1,23 @@ +# This file is part of lyx2lyx -*- python -*- +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2006 José Matos +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +version = "@PACKAGE_VERSION@" + +if __name__ == "__main__": + pass +