mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix inconsistent version in .lyx files (#7951)
LyX, lyx2lyx and tex2lyx produce now all the same version indicator consisting only of the major and minor version. It is not decided yet whether future development versions will add a -dev suffix, but for 2.1.0 this change fixes the inconsistencies.
This commit is contained in:
parent
da8b77b0b9
commit
822e171762
@ -16,7 +16,9 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
version = "@PACKAGE_VERSION@"
|
# Important: Keep the version formatting in sync with LyX and
|
||||||
|
# tex2lyx (bug 7951)
|
||||||
|
version = "@LYX_MAJOR_VERSION@.@LYX_MINOR_VERSION@"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
pass
|
pass
|
||||||
|
@ -1404,6 +1404,8 @@ bool Buffer::write(ostream & ofs) const
|
|||||||
// The top of the file should not be written by params().
|
// The top of the file should not be written by params().
|
||||||
|
|
||||||
// write out a comment in the top of the file
|
// write out a comment in the top of the file
|
||||||
|
// Important: Keep the version formatting in sync with lyx2lyx and
|
||||||
|
// tex2lyx (bug 7951)
|
||||||
ofs << "#LyX " << lyx_version_major << "." << lyx_version_minor
|
ofs << "#LyX " << lyx_version_major << "." << lyx_version_minor
|
||||||
<< " created this file. For more info see http://www.lyx.org/\n"
|
<< " created this file. For more info see http://www.lyx.org/\n"
|
||||||
<< "\\lyxformat " << LYX_FORMAT << "\n"
|
<< "\\lyxformat " << LYX_FORMAT << "\n"
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "Lexer.h"
|
#include "Lexer.h"
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
#include "support/FileName.h"
|
#include "support/FileName.h"
|
||||||
@ -1040,7 +1041,10 @@ bool Preamble::writeLyXHeader(ostream & os, bool subdoc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// output the LyX file settings
|
// output the LyX file settings
|
||||||
os << "#LyX file created by tex2lyx " << PACKAGE_VERSION << "\n"
|
// Important: Keep the version formatting in sync with LyX and
|
||||||
|
// lyx2lyx (bug 7951)
|
||||||
|
os << "#LyX file created by tex2lyx " << lyx_version_major << '.'
|
||||||
|
<< lyx_version_minor << '\n'
|
||||||
<< "\\lyxformat " << LYX_FORMAT << '\n'
|
<< "\\lyxformat " << LYX_FORMAT << '\n'
|
||||||
<< "\\begin_document\n"
|
<< "\\begin_document\n"
|
||||||
<< "\\begin_header\n"
|
<< "\\begin_header\n"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0
|
#LyX file created by tex2lyx 2.1
|
||||||
\lyxformat 474
|
\lyxformat 474
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
|
Loading…
Reference in New Issue
Block a user