On Monday 10 April 2006 12:01, Lars Gullik Bjønnes wrote: > > Perhaps thru the version number in configure.ac? Why not an .in file?
Something like this? If it is OK, I will commit and do the appropriate changes in LyX.py (change one line :-) -- José Abílio
Index: configure.ac =================================================================== --- configure.ac (revision 13579) +++ configure.ac (working copy) @@ -440,6 +440,7 @@ development/lyx.spec \ lib/Makefile \ lib/doc/Makefile \ + lib/lyx2lyx/lyx2lyx_version.py \ lib/lyx2lyx/Makefile \ intl/Makefile \ po/Makefile.in \ Index: lib/lyx2lyx/lyx2lyx_version.py.in =================================================================== --- lib/lyx2lyx/lyx2lyx_version.py.in (revision 0) +++ lib/lyx2lyx/lyx2lyx_version.py.in (revision 0) @@ -0,0 +1,23 @@ +# This file is part of lyx2lyx -*- python -*- +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2006 José Matos <[EMAIL PROTECTED]> +# +# 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 + Index: lib/lyx2lyx/Makefile.am =================================================================== --- lib/lyx2lyx/Makefile.am (revision 13616) +++ lib/lyx2lyx/Makefile.am (working copy) @@ -8,6 +8,7 @@ # and chmod manually in install-data-hook. dist_lyx2lyx_PYTHON = \ lyx2lyx \ + lyx2lyx_version.py \ parser_tools.py \ LyX.py \ lyx_0_12.py \