# along with this program; if not, write to the Free Software
# 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__":
pass
// The top of the file should not be written by params().
// 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
<< " created this file. For more info see http://www.lyx.org/\n"
<< "\\lyxformat " << LYX_FORMAT << "\n"
#include "Layout.h"
#include "Lexer.h"
#include "TextClass.h"
+#include "version.h"
#include "support/convert.h"
#include "support/FileName.h"
}
// 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'
<< "\\begin_document\n"
<< "\\begin_header\n"
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header
-#LyX file created by tex2lyx 2.1.0
+#LyX file created by tex2lyx 2.1
\lyxformat 474
\begin_document
\begin_header